mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-03 09:30:37 +02:00
Merge #18896: qt: Reset toolbar after all wallets are closed
1e9bfd4926a3cbb9db877c773a60b0bbbbe8bde0 qt: Reset toolbar after all wallets are closed (Hennadii Stepanov) Pull request description: If the last open wallet is closed from the non-"Overview" tab, that tab remains active when a new wallet is opened:  This PR fixes this bug. ACKs for top commit: promag: Code review ACK 1e9bfd4926a3cbb9db877c773a60b0bbbbe8bde0. luke-jr: utACK 1e9bfd4926a3cbb9db877c773a60b0bbbbe8bde0 jonasschnelli: utACK 1e9bfd4926a3cbb9db877c773a60b0bbbbe8bde0 Tree-SHA512: a8dfd7591267e9544ad40c87581d554e5cfaad4b2a5bbfdbaf2596dc6869d2ac6cf7877adfef3d528fc61b081d40c6e30d787bbd7280ef7946aa7f7d9bc8b18e
This commit is contained in:
commit
64bf5d64df
@ -683,6 +683,7 @@ void BitcoinGUI::removeWallet(WalletModel* walletModel)
|
||||
m_wallet_selector->removeItem(index);
|
||||
if (m_wallet_selector->count() == 0) {
|
||||
setWalletActionsEnabled(false);
|
||||
overviewAction->setChecked(true);
|
||||
} else if (m_wallet_selector->count() == 1) {
|
||||
m_wallet_selector_label_action->setVisible(false);
|
||||
m_wallet_selector_action->setVisible(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user