Skip to content

Commit 4c524f0

Browse files
committed
Bugfix: GUI: Hide the HD/encrypt icons earlier so they get re-shown if another wallet is open
1 parent 486f510 commit 4c524f0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/qt/bitcoingui.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,10 @@ void BitcoinGUI::addWallet(WalletModel* walletModel)
648648
void BitcoinGUI::removeWallet(WalletModel* walletModel)
649649
{
650650
if (!walletFrame) return;
651+
652+
labelWalletHDStatusIcon->hide();
653+
labelWalletEncryptionIcon->hide();
654+
651655
int index = m_wallet_selector->findData(QVariant::fromValue(walletModel));
652656
m_wallet_selector->removeItem(index);
653657
if (m_wallet_selector->count() == 0) {
@@ -659,8 +663,6 @@ void BitcoinGUI::removeWallet(WalletModel* walletModel)
659663
rpcConsole->removeWallet(walletModel);
660664
walletFrame->removeWallet(walletModel);
661665
updateWindowTitle();
662-
labelWalletHDStatusIcon->hide();
663-
labelWalletEncryptionIcon->hide();
664666
}
665667

666668
void BitcoinGUI::setCurrentWallet(WalletModel* wallet_model)

0 commit comments

Comments
 (0)