diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 1b1a8260..86749aba 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -1079,7 +1079,7 @@ Rectangle { selectExisting: false onAccepted: { console.log(walletManager.urlToLocalPath(exportKeyImagesDialog.fileUrl)) - currentWallet.exportKeyImages(walletManager.urlToLocalPath(exportKeyImagesDialog.fileUrl)); + currentWallet.exportKeyImages(walletManager.urlToLocalPath(exportKeyImagesDialog.fileUrl), true); } onRejected: { console.log("Canceled"); diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index f7cc1965..691e03d3 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -489,9 +489,9 @@ quint64 Wallet::daemonBlockChainTargetHeight() const return m_daemonBlockChainTargetHeight; } -bool Wallet::exportKeyImages(const QString& path) +bool Wallet::exportKeyImages(const QString& path, bool all) { - return m_walletImpl->exportKeyImages(path.toStdString()); + return m_walletImpl->exportKeyImages(path.toStdString(), all); } bool Wallet::importKeyImages(const QString& path) diff --git a/src/libwalletqt/Wallet.h b/src/libwalletqt/Wallet.h index e0157ee3..e55bceb9 100644 --- a/src/libwalletqt/Wallet.h +++ b/src/libwalletqt/Wallet.h @@ -205,7 +205,7 @@ public: Q_INVOKABLE void refreshHeightAsync(); //! export/import key images - Q_INVOKABLE bool exportKeyImages(const QString& path); + Q_INVOKABLE bool exportKeyImages(const QString& path, bool all = false); Q_INVOKABLE bool importKeyImages(const QString& path); //! refreshes the wallet