mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 22:42:04 +01:00
Merge #18007: Bugfix: GUI: Hide the HD/encrypt icons earlier so they get re-shown if another wallet is open
4c524f0aad
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 ACK4c524f0aad
. jonasschnelli: utACK4c524f0aad
hebasto: ACK4c524f0aad
, tested on Linux Mint 19.3. Tree-SHA512: 4ef1bd4a0ae2f20ace9d02bc5d778640c11e46a86f30b762f8502e577f85114f0644d51a70cfbc4c23b51869c3caf20e94548aa64f51fdb85aea5f194a23fca6
This commit is contained in:
commit
ef8e2cee9f
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue