| 88 | } |
| 89 | |
| 90 | void WalletController::closeWallet(WalletModel* wallet_model, QWidget* parent) |
| 91 | { |
| 92 | QMessageBox box(parent); |
| 93 | box.setWindowTitle(tr("Close wallet")); |
| 94 | box.setText(tr("Are you sure you wish to close the wallet <i>%1</i>?").arg(GUIUtil::HtmlEscape(wallet_model->getDisplayName()))); |
| 95 | box.setInformativeText(tr("Closing the wallet for too long can result in having to resync the entire chain if pruning is enabled.")); |
| 96 | box.setStandardButtons(QMessageBox::Yes|QMessageBox::Cancel); |
| 97 | box.setDefaultButton(QMessageBox::Yes); |
| 98 | if (box.exec() != QMessageBox::Yes) return; |
| 99 | |
| 100 | removeWallet(wallet_model); |
| 101 | } |
| 102 | |
| 103 | void WalletController::closeAllWallets(QWidget* parent) |
| 104 | { |
no test coverage detected