[Qt] Disable creating receive addresses when private keys are disabled

This commit is contained in:
Jonas Schnelli
2017-02-01 13:54:28 +01:00
parent 2f15c2bc20
commit c7b8f343e9
5 changed files with 13 additions and 0 deletions

View File

@@ -426,6 +426,7 @@ public:
}
unsigned int getConfirmTarget() override { return m_wallet.m_confirm_target; }
bool hdEnabled() override { return m_wallet.IsHDEnabled(); }
bool IsWalletFlagSet(uint64_t flag) override { return m_wallet.IsWalletFlagSet(flag); }
OutputType getDefaultAddressType() override { return m_wallet.m_default_address_type; }
OutputType getDefaultChangeType() override { return m_wallet.m_default_change_type; }
std::unique_ptr<Handler> handleUnload(UnloadFn fn) override

View File

@@ -236,6 +236,9 @@ public:
// Return whether HD enabled.
virtual bool hdEnabled() = 0;
// check if a certain wallet flag is set.
virtual bool IsWalletFlagSet(uint64_t flag) = 0;
// Get default address type.
virtual OutputType getDefaultAddressType() = 0;