Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletframe.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | if (mapWalletViews.count(name) > 0) { | ||||
return false; | return false; | ||||
} | } | ||||
WalletView *walletView = new WalletView(platformStyle, walletModel, this); | WalletView *walletView = new WalletView(platformStyle, walletModel, this); | ||||
walletView->setBitcoinGUI(gui); | walletView->setBitcoinGUI(gui); | ||||
walletView->setClientModel(clientModel); | walletView->setClientModel(clientModel); | ||||
walletView->showOutOfSyncWarning(bOutOfSync); | walletView->showOutOfSyncWarning(bOutOfSync); | ||||
/* TODO we should goto the currently selected page once dynamically adding | WalletView *current_wallet_view = currentWalletView(); | ||||
* wallets is supported */ | if (current_wallet_view) { | ||||
walletView->setCurrentIndex(current_wallet_view->currentIndex()); | |||||
} else { | |||||
walletView->gotoOverviewPage(); | walletView->gotoOverviewPage(); | ||||
} | |||||
walletStack->addWidget(walletView); | walletStack->addWidget(walletView); | ||||
mapWalletViews[name] = walletView; | mapWalletViews[name] = walletView; | ||||
// Ensure a walletView is able to show the main window | // Ensure a walletView is able to show the main window | ||||
connect(walletView, SIGNAL(showNormalIfMinimized()), gui, | connect(walletView, SIGNAL(showNormalIfMinimized()), gui, | ||||
SLOT(showNormalIfMinimized())); | SLOT(showNormalIfMinimized())); | ||||
connect(walletView, SIGNAL(outOfSyncWarningClicked()), this, | connect(walletView, SIGNAL(outOfSyncWarningClicked()), this, | ||||
▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines |