Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletcontroller.cpp
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | std::map<std::string, bool> WalletController::listWalletDir() const { | ||||
return wallets; | return wallets; | ||||
} | } | ||||
OpenWalletActivity *WalletController::openWallet(const CChainParams ¶ms, | OpenWalletActivity *WalletController::openWallet(const CChainParams ¶ms, | ||||
const std::string &name, | const std::string &name, | ||||
QWidget *parent) { | QWidget *parent) { | ||||
OpenWalletActivity *activity = new OpenWalletActivity(this, name, params); | OpenWalletActivity *activity = new OpenWalletActivity(this, name, params); | ||||
activity->moveToThread(&m_activity_thread); | activity->moveToThread(&m_activity_thread); | ||||
QMetaObject::invokeMethod(activity, "open", Qt::QueuedConnection); | |||||
return activity; | return activity; | ||||
} | } | ||||
void WalletController::closeWallet(WalletModel *wallet_model, QWidget *parent) { | void WalletController::closeWallet(WalletModel *wallet_model, QWidget *parent) { | ||||
QMessageBox box(parent); | QMessageBox box(parent); | ||||
box.setWindowTitle(tr("Close wallet")); | box.setWindowTitle(tr("Close wallet")); | ||||
box.setText(tr("Are you sure you wish to close wallet <i>%1</i>?") | box.setText(tr("Are you sure you wish to close wallet <i>%1</i>?") | ||||
.arg(wallet_model->getDisplayName())); | .arg(wallet_model->getDisplayName())); | ||||
box.setInformativeText( | box.setInformativeText( | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |