From b7aa717cdd3f6af266c244fec6d775e917cf8d0c Mon Sep 17 00:00:00 2001 From: furszy Date: Wed, 28 Feb 2024 09:57:49 -0300 Subject: refactor: gui, simplify boost signals disconnection Preventing dangling signals. --- src/qt/clientmodel.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/qt/clientmodel.h') diff --git a/src/qt/clientmodel.h b/src/qt/clientmodel.h index 68fb2e6322..624056b5df 100644 --- a/src/qt/clientmodel.h +++ b/src/qt/clientmodel.h @@ -97,13 +97,7 @@ public: private: interfaces::Node& m_node; - std::unique_ptr m_handler_show_progress; - std::unique_ptr m_handler_notify_num_connections_changed; - std::unique_ptr m_handler_notify_network_active_changed; - std::unique_ptr m_handler_notify_alert_changed; - std::unique_ptr m_handler_banned_list_changed; - std::unique_ptr m_handler_notify_block_tip; - std::unique_ptr m_handler_notify_header_tip; + std::vector> m_event_handlers; OptionsModel *optionsModel; PeerTableModel* peerTableModel{nullptr}; PeerTableSortProxy* m_peer_table_sort_proxy{nullptr}; -- cgit v1.2.3