aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.cpp
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-01-21 16:49:33 -0500
committerAndrew Chow <achow101-github@achow101.com>2019-01-21 19:39:01 -0500
commit14bcdbe09cffaef9bcc51dd9de1645db3f0a93db (patch)
tree9841a556ec0a0515601e4da88828266ba178f4f1 /src/qt/walletmodel.cpp
parent6e6b3b944d12a252a0fd9a1d68fec9843dd5b4f8 (diff)
downloadbitcoin-14bcdbe09cffaef9bcc51dd9de1645db3f0a93db.tar.xz
Check for more than private keys disabled to show receive button
Diffstat (limited to 'src/qt/walletmodel.cpp')
-rw-r--r--src/qt/walletmodel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp
index f139152042..73fce02554 100644
--- a/src/qt/walletmodel.cpp
+++ b/src/qt/walletmodel.cpp
@@ -571,6 +571,11 @@ bool WalletModel::privateKeysDisabled() const
return m_wallet->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS);
}
+bool WalletModel::canGetAddresses() const
+{
+ return m_wallet->hdEnabled() || (!m_wallet->hdEnabled() && !m_wallet->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS));
+}
+
QString WalletModel::getWalletName() const
{
return QString::fromStdString(m_wallet->getWalletName());