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.
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.
93 | @@ -94,6 +94,10 @@ void WalletFrame::removeWallet(WalletModel* wallet_model) 94 | WalletView *walletView = mapWalletViews.take(wallet_model); 95 | walletStack->removeWidget(walletView); 96 | delete walletView; 97 | + 98 | + if (mapWalletViews.empty()) { 99 | + gui->gotoOverviewPage();
I'd avoid using gui, it should be unknown to WalletFrame - actually I have a branch to remove gui here. May I suggest to do this in BitcoinGUI::removeWallet, in m_wallet_selector->count() == 0 condition.
No strong opinion.
Concept ACK, it fixes the bug when a wallet is opened after closing the last one where the current page isn't overview.
Updated 7251b993093730f965f9de5b1c45fe3238e2dfd9 -> 1e9bfd4926a3cbb9db877c773a60b0bbbbe8bde0 (pr18896.01 -> pr18896.02, diff):
utACK 1e9bfd4926a3cbb9db877c773a60b0bbbbe8bde0
Reopened to update Travis CI build list.
utACK 1e9bfd4926a3cbb9db877c773a60b0bbbbe8bde0
Code review ACK 1e9bfd4926a3cbb9db877c773a60b0bbbbe8bde0.