From 2bc4c3eaf96f5f8490fc79280422916c5d14cde3 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Fri, 18 Jan 2019 17:05:32 -0500 Subject: Notify the GUI that the keypool has changed to set the receive button Whenever the keypool changes (new keys generated, new seed set, keypool runs out, etc.), notify the GUI that the keypool has changed. The receive button can then be enabled and disabled as necessary. --- src/interfaces/wallet.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/interfaces/wallet.cpp') diff --git a/src/interfaces/wallet.cpp b/src/interfaces/wallet.cpp index 8db34ed759..7481d51f15 100644 --- a/src/interfaces/wallet.cpp +++ b/src/interfaces/wallet.cpp @@ -488,6 +488,10 @@ public: { return MakeHandler(m_wallet.NotifyWatchonlyChanged.connect(fn)); } + std::unique_ptr handleCanGetAddressesChanged(CanGetAddressesChangedFn fn) override + { + return MakeHandler(m_wallet.NotifyCanGetAddressesChanged.connect(fn)); + } std::shared_ptr m_shared_wallet; CWallet& m_wallet; -- cgit v1.2.3