diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2020-01-26 22:54:59 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2020-01-26 22:55:10 +0000 |
commit | 4c524f0aad11b44baa56d2b2e432bbddffff74c2 (patch) | |
tree | be5c9684f051a003cecffde9637d21fba6f5b249 | |
parent | 486f51099ff4e68b67c5bb7ea428c56f3ea1bd55 (diff) |
Bugfix: GUI: Hide the HD/encrypt icons earlier so they get re-shown if another wallet is open
-rw-r--r-- | src/qt/bitcoingui.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index f22d33bf0a..96824706e3 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -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) { @@ -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) |