Skip to content

Commit 64bf5d6

Browse files
committed
Merge #18896: qt: Reset toolbar after all wallets are closed
1e9bfd4 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: ![Screenshot from 2020-05-06 09-00-26](https://user-images.githubusercontent.com/32963518/81142394-46821880-8f78-11ea-84b5-1d02f2b7f3f1.png) This PR fixes this bug. ACKs for top commit: promag: Code review ACK 1e9bfd4. luke-jr: utACK 1e9bfd4 jonasschnelli: utACK 1e9bfd4 Tree-SHA512: a8dfd7591267e9544ad40c87581d554e5cfaad4b2a5bbfdbaf2596dc6869d2ac6cf7877adfef3d528fc61b081d40c6e30d787bbd7280ef7946aa7f7d9bc8b18e
2 parents e3b3125 + 1e9bfd4 commit 64bf5d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/qt/bitcoingui.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ void BitcoinGUI::removeWallet(WalletModel* walletModel)
683683
m_wallet_selector->removeItem(index);
684684
if (m_wallet_selector->count() == 0) {
685685
setWalletActionsEnabled(false);
686+
overviewAction->setChecked(true);
686687
} else if (m_wallet_selector->count() == 1) {
687688
m_wallet_selector_label_action->setVisible(false);
688689
m_wallet_selector_action->setVisible(false);

0 commit comments

Comments
 (0)