| 250 | } |
| 251 | |
| 252 | void 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 | |
| 271 | void WalletView::changePassphrase() |
| 272 | { |
nothing calls this directly
no test coverage detected