Skip to content

Commit ef8e2ce

Browse files
committed
Merge bitcoin#18007: Bugfix: GUI: Hide the HD/encrypt icons earlier so they get re-shown if another wallet is open
4c524f0 Bugfix: GUI: Hide the HD/encrypt icons earlier so they get re-shown if another wallet is open (Luke Dashjr) Pull request description: To reproduce bug, open 2 wallets, and close 1. You end up left without the HD/encrypt icons, despite having a wallet open still. This works because the icons are re-shown after we remove the current wallet (if there's another wallet still open). ACKs for top commit: promag: Tested ACK 4c524f0. jonasschnelli: utACK 4c524f0 hebasto: ACK 4c524f0, tested on Linux Mint 19.3. Tree-SHA512: 4ef1bd4a0ae2f20ace9d02bc5d778640c11e46a86f30b762f8502e577f85114f0644d51a70cfbc4c23b51869c3caf20e94548aa64f51fdb85aea5f194a23fca6
2 parents 3253b5d + 4c524f0 commit ef8e2ce

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)