Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletframe.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | bool WalletFrame::addWallet(WalletModel *walletModel) { | ||||
} else { | } 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, &WalletView::showNormalIfMinimized, | ||||
SLOT(showNormalIfMinimized())); | [this] { gui->showNormalIfMinimized(); }); | ||||
connect(walletView, SIGNAL(outOfSyncWarningClicked()), this, | connect(walletView, &WalletView::outOfSyncWarningClicked, this, | ||||
SLOT(outOfSyncWarningClicked())); | &WalletFrame::outOfSyncWarningClicked); | ||||
return true; | return true; | ||||
} | } | ||||
bool WalletFrame::setCurrentWallet(const QString &name) { | bool WalletFrame::setCurrentWallet(const QString &name) { | ||||
if (mapWalletViews.count(name) == 0) { | if (mapWalletViews.count(name) == 0) { | ||||
return false; | return false; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |