bool WalletFrame::setCurrentWallet(const QString& name) { if (mapWalletViews.count(name) == 0) return false; WalletView *walletView = mapWalletViews.value(name); walletStack->setCurrentWidget(walletView); walletView->updateEncryptionStatus(); return true; }
bool WalletFrame::setCurrentWallet(WalletModel* wallet_model) { if (mapWalletViews.count(wallet_model) == 0) return false; WalletView *walletView = mapWalletViews.value(wallet_model); walletStack->setCurrentWidget(walletView); assert(walletView); walletView->updateEncryptionStatus(); return true; }