Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletcontroller.cpp
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | std::map<std::string, bool> WalletController::listWalletDir() const { | ||||
} | } | ||||
return wallets; | return wallets; | ||||
} | } | ||||
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(GUIUtil::HtmlEscape(wallet_model->getDisplayName()))); | ||||
box.setInformativeText( | box.setInformativeText( | ||||
tr("Closing the wallet for too long can result in having to resync the " | tr("Closing the wallet for too long can result in having to resync the " | ||||
"entire chain if pruning is enabled.")); | "entire chain if pruning is enabled.")); | ||||
box.setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel); | box.setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel); | ||||
box.setDefaultButton(QMessageBox::Yes); | box.setDefaultButton(QMessageBox::Yes); | ||||
if (box.exec() != QMessageBox::Yes) { | if (box.exec() != QMessageBox::Yes) { | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 236 Lines • Show Last 20 Lines |