Skip to content

Commit d54d949

Browse files
committed
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.
1 parent eaf09bd commit d54d949

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
@@ -682,8 +682,6 @@ void BitcoinGUI::addWallet(WalletModel* walletModel)
682682
m_wallet_selector_label_action->setVisible(true);
683683
m_wallet_selector_action->setVisible(true);
684684
}
685-
const QString display_name = walletModel->getDisplayName();
686-
m_wallet_selector->addItem(display_name, QVariant::fromValue(walletModel));
687685

688686
connect(wallet_view, &WalletView::outOfSyncWarningClicked, this, &BitcoinGUI::showModalOverlay);
689687
connect(wallet_view, &WalletView::transactionClicked, this, &BitcoinGUI::gotoHistoryPage);
@@ -696,6 +694,8 @@ void BitcoinGUI::addWallet(WalletModel* walletModel)
696694
connect(wallet_view, &WalletView::hdEnabledStatusChanged, this, &BitcoinGUI::updateWalletStatus);
697695
connect(this, &BitcoinGUI::setPrivacy, wallet_view, &WalletView::setPrivacy);
698696
wallet_view->setPrivacy(isPrivacyModeActivated());
697+
const QString display_name = walletModel->getDisplayName();
698+
m_wallet_selector->addItem(display_name, QVariant::fromValue(walletModel));
699699
}
700700

701701
void BitcoinGUI::removeWallet(WalletModel* walletModel)

0 commit comments

Comments
 (0)