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/qt/walletmodel.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/qt/walletmodel.h') diff --git a/src/qt/walletmodel.h b/src/qt/walletmodel.h index 8d7b210d2e..b123befbb4 100644 --- a/src/qt/walletmodel.h +++ b/src/qt/walletmodel.h @@ -233,6 +233,7 @@ private: std::unique_ptr m_handler_transaction_changed; std::unique_ptr m_handler_show_progress; std::unique_ptr m_handler_watch_only_changed; + std::unique_ptr m_handler_can_get_addrs_changed; interfaces::Node& m_node; bool fHaveWatchOnly; @@ -284,6 +285,9 @@ Q_SIGNALS: // Signal that wallet is about to be removed void unload(); + // Notify that there are now keys in the keypool + void canGetAddressesChanged(); + public Q_SLOTS: /* Wallet status might have changed */ void updateStatus(); -- cgit v1.2.3