qt: Reset toolbar after all wallets are closed

This commit is contained in:
Hennadii Stepanov 2020-05-07 08:15:46 +03:00
parent d96fdc2a39
commit 1e9bfd4926
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -662,6 +662,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);