Skip to content

Commit 980a8b8

Browse files
hebastogwillen
authored andcommitted
qt: Fix regression in "Encrypt Wallet" menu item
Adding a new item to the m_wallet_selector must follow the establishment of signal-slot connections. Github-Pull: bitcoin-core/gui#393 Rebased-From: d54d949
1 parent 76727e7 commit 980a8b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qt/bitcoingui.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,6 @@ void BitcoinGUI::addWallet(WalletModel* walletModel)
677677
m_wallet_selector_label_action->setVisible(true);
678678
m_wallet_selector_action->setVisible(true);
679679
}
680-
const QString display_name = walletModel->getDisplayName();
681-
m_wallet_selector->addItem(display_name, QVariant::fromValue(walletModel));
682680

683681
connect(wallet_view, &WalletView::outOfSyncWarningClicked, this, &BitcoinGUI::showModalOverlay);
684682
connect(wallet_view, &WalletView::transactionClicked, this, &BitcoinGUI::gotoHistoryPage);
@@ -691,6 +689,8 @@ void BitcoinGUI::addWallet(WalletModel* walletModel)
691689
connect(wallet_view, &WalletView::hdEnabledStatusChanged, this, &BitcoinGUI::updateWalletStatus);
692690
connect(this, &BitcoinGUI::setPrivacy, wallet_view, &WalletView::setPrivacy);
693691
wallet_view->setPrivacy(isPrivacyModeActivated());
692+
const QString display_name = walletModel->getDisplayName();
693+
m_wallet_selector->addItem(display_name, QVariant::fromValue(walletModel));
694694
}
695695

696696
void BitcoinGUI::removeWallet(WalletModel* walletModel)

0 commit comments

Comments
 (0)