We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e674ba commit 2e75134Copy full SHA for 2e75134
src/qt/walletframe.cpp
@@ -57,8 +57,13 @@ bool WalletFrame::addWallet(WalletModel *walletModel)
57
walletView->setWalletModel(walletModel);
58
walletView->showOutOfSyncWarning(bOutOfSync);
59
60
- /* TODO we should goto the currently selected page once dynamically adding wallets is supported */
61
- walletView->gotoOverviewPage();
+ WalletView* current_wallet_view = currentWalletView();
+ if (current_wallet_view) {
62
+ walletView->setCurrentIndex(current_wallet_view->currentIndex());
63
+ } else {
64
+ walletView->gotoOverviewPage();
65
+ }
66
+
67
walletStack->addWidget(walletView);
68
mapWalletViews[name] = walletView;
69
0 commit comments