diff options
| author | benevanoff <benjaminevanoff99@gmail.com> | 2020-12-25 02:16:15 -0600 |
|---|---|---|
| committer | benevanoff <benjaminevanoff99@gmail.com> | 2020-12-25 02:16:15 -0600 |
| commit | 6dd7445938cef979579a829a2e03cb85b7ddd298 (patch) | |
| tree | d0da0ea38ea8455d65402db2709d2d07d84ec7d2 | |
| parent | fed00a5662dcbc77c928a06778d7c9001e7d90f9 (diff) | |
| download | monzero-gui-6dd7445938cef979579a829a2e03cb85b7ddd298.tar.gz monzero-gui-6dd7445938cef979579a829a2e03cb85b7ddd298.tar.xz monzero-gui-6dd7445938cef979579a829a2e03cb85b7ddd298.zip | |
Transfer: export all key images by default
| -rw-r--r-- | pages/Transfer.qml | 2 | ||||
| -rw-r--r-- | src/libwalletqt/Wallet.cpp | 4 | ||||
| -rw-r--r-- | src/libwalletqt/Wallet.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 44edd403..a1bd8985 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -718,7 +718,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 010bb487..67b9108a 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 0f6d1353..8b34f847 100644 --- a/src/libwalletqt/Wallet.h +++ b/src/libwalletqt/Wallet.h @@ -206,7 +206,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 |
