mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-10 19:43:13 +02:00
Merge bitcoin-core/gui#393: Fix regression in "Encrypt Wallet" menu item
d54d949598
qt: Fix regression in "Encrypt Wallet" menu item (Hennadii Stepanov) Pull request description: Fix #392. Adding a new item to the `m_wallet_selector` must follow the establishment of a connection between the `WalletView::encryptionStatusChanged` signal and the `BitcoinGUI::updateWalletStatus` slot. This was a regression introduced in20e2e24e90
(#29). --- An _encrypted_ wallet being auto-loaded at the GUI startup: - on master (eaf09bda4a
)  - with this PR  ACKs for top commit: achow101: ACKd54d949598
jarolrod: ACKd54d949598
Tree-SHA512: 669615ec8e1517c2f4cdf59bd11a7c85be793ba0dda112361cf95e6c2f0636215fed331d26a86dc9b779a49defae1b248232f98dab449584376c111c288e87bb
This commit is contained in:
@@ -682,8 +682,6 @@ void BitcoinGUI::addWallet(WalletModel* walletModel)
|
|||||||
m_wallet_selector_label_action->setVisible(true);
|
m_wallet_selector_label_action->setVisible(true);
|
||||||
m_wallet_selector_action->setVisible(true);
|
m_wallet_selector_action->setVisible(true);
|
||||||
}
|
}
|
||||||
const QString display_name = walletModel->getDisplayName();
|
|
||||||
m_wallet_selector->addItem(display_name, QVariant::fromValue(walletModel));
|
|
||||||
|
|
||||||
connect(wallet_view, &WalletView::outOfSyncWarningClicked, this, &BitcoinGUI::showModalOverlay);
|
connect(wallet_view, &WalletView::outOfSyncWarningClicked, this, &BitcoinGUI::showModalOverlay);
|
||||||
connect(wallet_view, &WalletView::transactionClicked, this, &BitcoinGUI::gotoHistoryPage);
|
connect(wallet_view, &WalletView::transactionClicked, this, &BitcoinGUI::gotoHistoryPage);
|
||||||
@@ -696,6 +694,8 @@ void BitcoinGUI::addWallet(WalletModel* walletModel)
|
|||||||
connect(wallet_view, &WalletView::hdEnabledStatusChanged, this, &BitcoinGUI::updateWalletStatus);
|
connect(wallet_view, &WalletView::hdEnabledStatusChanged, this, &BitcoinGUI::updateWalletStatus);
|
||||||
connect(this, &BitcoinGUI::setPrivacy, wallet_view, &WalletView::setPrivacy);
|
connect(this, &BitcoinGUI::setPrivacy, wallet_view, &WalletView::setPrivacy);
|
||||||
wallet_view->setPrivacy(isPrivacyModeActivated());
|
wallet_view->setPrivacy(isPrivacyModeActivated());
|
||||||
|
const QString display_name = walletModel->getDisplayName();
|
||||||
|
m_wallet_selector->addItem(display_name, QVariant::fromValue(walletModel));
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitcoinGUI::removeWallet(WalletModel* walletModel)
|
void BitcoinGUI::removeWallet(WalletModel* walletModel)
|
||||||
|
Reference in New Issue
Block a user