mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-07 06:01:22 +00:00
Merge #18007: Bugfix: GUI: Hide the HD/encrypt icons earlier so they get re-shown if another wallet is open
4c524f0aad11b44baa56d2b2e432bbddffff74c2 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 4c524f0aad11b44baa56d2b2e432bbddffff74c2.
jonasschnelli:
utACK 4c524f0aad11b44baa56d2b2e432bbddffff74c2
hebasto:
ACK 4c524f0aad11b44baa56d2b2e432bbddffff74c2, tested on Linux Mint 19.3.
Tree-SHA512: 4ef1bd4a0ae2f20ace9d02bc5d778640c11e46a86f30b762f8502e577f85114f0644d51a70cfbc4c23b51869c3caf20e94548aa64f51fdb85aea5f194a23fca6
This commit is contained in:
commit
ef8e2cee9f
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user