X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fqt%2Fwalletmodel.cpp;h=8344a653d5112edc63bd84d7cdb6a22de22dc09a;hp=f028f10f6c69fe6b25f25cfaa5e22691a23a207e;hb=4efbda3f257bd8e635715377d85862d322c57c4b;hpb=15b87b2ec40bdcbc7e8173c79b829fc0f550909e diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index f028f10..8344a65 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -5,6 +5,7 @@ #include "transactiontablemodel.h" #include "headers.h" +#include "db.h" // for BackupWallet #include #include @@ -239,6 +240,11 @@ bool WalletModel::changePassphrase(const SecureString &oldPass, const SecureStri return retval; } +bool WalletModel::backupWallet(const QString &filename) +{ + return BackupWallet(*wallet, filename.toLocal8Bit().data()); +} + // WalletModel::UnlockContext implementation WalletModel::UnlockContext WalletModel::requestUnlock() {