diff options
| -rw-r--r-- | main.qml | 3 | ||||
| -rw-r--r-- | src/libwalletqt/Wallet.h | 3 |
2 files changed, 3 insertions, 3 deletions
@@ -294,8 +294,7 @@ ApplicationWindow { // Wallet is nomrmally saved to disk on app exit. This prevents rescan from block 0 after app crash if(isNewWallet){ console.log("Saving wallet after first refresh"); - //TODO: Doesn't need path argument after creation. Change libwalletqt - currentWallet.store("") + currentWallet.store() isNewWallet = false } diff --git a/src/libwalletqt/Wallet.h b/src/libwalletqt/Wallet.h index 458dea90..26e66f6e 100644 --- a/src/libwalletqt/Wallet.h +++ b/src/libwalletqt/Wallet.h @@ -79,7 +79,8 @@ public: QString address() const; //! saves wallet to the file by given path - Q_INVOKABLE bool store(const QString &path); + //! empty path stores in current location + Q_INVOKABLE bool store(const QString &path = ""); //! initializes wallet Q_INVOKABLE bool init(const QString &daemonAddress, quint64 upperTransactionLimit, bool isRecovering = false, quint64 restoreHeight = 0); |
