diff options
| author | Jonas Schnelli <[email protected]> | 2017-02-01 13:54:28 +0100 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2018-07-12 20:32:07 +0100 |
| commit | c7b8f343e99d9d53ea353ddce9a977f1886caf30 (patch) | |
| tree | 91d1f8eadc33cd093c721d1c1be41f502e10c16b /src/qt/walletmodel.cpp | |
| parent | Add disable privatekeys option to createwallet (diff) | |
| download | discoin-c7b8f343e99d9d53ea353ddce9a977f1886caf30.tar.xz discoin-c7b8f343e99d9d53ea353ddce9a977f1886caf30.zip | |
[Qt] Disable creating receive addresses when private keys are disabled
Diffstat (limited to 'src/qt/walletmodel.cpp')
| -rw-r--r-- | src/qt/walletmodel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 389acf0a9..cd55b40b7 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -558,6 +558,11 @@ bool WalletModel::isWalletEnabled() return !gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET); } +bool WalletModel::privateKeysDisabled() const +{ + return m_wallet->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS); +} + QString WalletModel::getWalletName() const { return QString::fromStdString(m_wallet->getWalletName()); |