MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / backupWallet

Method backupWallet

src/qt/walletview.cpp:252–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252void WalletView::backupWallet()
253{
254 QString filename = GUIUtil::getSaveFileName(this,
255 tr("Backup Wallet"), QString(),
256 tr("Wallet Data (*.dat)"), nullptr);
257
258 if (filename.isEmpty())
259 return;
260
261 if (!walletModel->wallet().backupWallet(filename.toLocal8Bit().data())) {
262 Q_EMIT message(tr("Backup Failed"), tr("There was an error trying to save the wallet data to %1.").arg(filename),
263 CClientUIInterface::MSG_ERROR);
264 }
265 else {
266 Q_EMIT message(tr("Backup Successful"), tr("The wallet data was successfully saved to %1.").arg(filename),
267 CClientUIInterface::MSG_INFORMATION);
268 }
269}
270
271void WalletView::changePassphrase()
272{

Callers

nothing calls this directly

Calls 2

getSaveFileNameFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected