diff options
| author | Riccardo Spagni <ric@spagni.net> | 2016-12-08 23:54:33 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2016-12-08 23:54:33 +0200 |
| commit | 4286b5c1c90c2777325eb403f17cf6e33485c536 (patch) | |
| tree | 7531a31108524f4c9be30c9ddcf5d98adb01fbfa /src | |
| parent | a37279b05cfc2b229675e34af3eee73115ddebd9 (diff) | |
| parent | b5a993bd8a7526bfe43a827261a34f8427e42f1e (diff) | |
| download | monzero-gui-4286b5c1c90c2777325eb403f17cf6e33485c536.tar.gz monzero-gui-4286b5c1c90c2777325eb403f17cf6e33485c536.tar.xz monzero-gui-4286b5c1c90c2777325eb403f17cf6e33485c536.zip | |
Merge pull request #209
b5a993b Print wallet filename in password dialog where approrpiate (moneromooo.monero)
Diffstat (limited to 'src')
| -rw-r--r-- | src/libwalletqt/Wallet.cpp | 5 | ||||
| -rw-r--r-- | src/libwalletqt/Wallet.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index 9170073d..9d814d82 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -112,6 +112,11 @@ QString Wallet::address() const return QString::fromStdString(m_walletImpl->address()); } +QString Wallet::path() const +{ + return QString::fromStdString(m_walletImpl->path()); +} + bool Wallet::store(const QString &path) { return m_walletImpl->store(path.toStdString()); diff --git a/src/libwalletqt/Wallet.h b/src/libwalletqt/Wallet.h index 14308ce5..492080d4 100644 --- a/src/libwalletqt/Wallet.h +++ b/src/libwalletqt/Wallet.h @@ -31,6 +31,7 @@ class Wallet : public QObject Q_PROPERTY(TransactionHistory * history READ history) Q_PROPERTY(QString paymentId READ paymentId WRITE setPaymentId) Q_PROPERTY(TransactionHistorySortFilterModel * historyModel READ historyModel NOTIFY historyModelChanged) + Q_PROPERTY(QString path READ path) public: @@ -78,6 +79,9 @@ public: //! returns wallet's public address QString address() const; + //! returns wallet file's path + QString path() const; + //! saves wallet to the file by given path //! empty path stores in current location Q_INVOKABLE bool store(const QString &path = ""); |
