Skip to content

Commit

Permalink
Bugfix: GUI: Hide the HD/encrypt icons earlier so they get re-shown i…
Browse files Browse the repository at this point in the history
…f another wallet is open
  • Loading branch information
luke-jr committed Jan 26, 2020
1 parent 486f510 commit 4c524f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/qt/bitcoingui.cpp
Expand Up @@ -648,6 +648,10 @@ void BitcoinGUI::addWallet(WalletModel* walletModel)
void BitcoinGUI::removeWallet(WalletModel* walletModel)
{
if (!walletFrame) return;

labelWalletHDStatusIcon->hide();
labelWalletEncryptionIcon->hide();

int index = m_wallet_selector->findData(QVariant::fromValue(walletModel));
m_wallet_selector->removeItem(index);
if (m_wallet_selector->count() == 0) {
Expand All @@ -659,8 +663,6 @@ void BitcoinGUI::removeWallet(WalletModel* walletModel)
rpcConsole->removeWallet(walletModel);
walletFrame->removeWallet(walletModel);
updateWindowTitle();
labelWalletHDStatusIcon->hide();
labelWalletEncryptionIcon->hide();
}

void BitcoinGUI::setCurrentWallet(WalletModel* wallet_model)
Expand Down

0 comments on commit 4c524f0

Please sign in to comment.