MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / closeWallet

Method closeWallet

src/qt/walletcontroller.cpp:90–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void 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
103void WalletController::closeAllWallets(QWidget* parent)
104{

Callers 1

createActionsMethod · 0.80

Calls 4

HtmlEscapeFunction · 0.85
setTextMethod · 0.80
getDisplayNameMethod · 0.80
execMethod · 0.80

Tested by

no test coverage detected