diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-10-14 20:46:34 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-10-25 14:53:37 +0100 |
commit | 6b6be41c36e4fe9a74bed50e7f0a06532ab1260b (patch) | |
tree | c5c49144995bc98341ddf3329483438d1108917c /src/qt/clientmodel.h | |
parent | d882f635898fe036ef7be6b30bac31d29ec03ae3 (diff) |
gui: Make polling in ClientModel asynchronous
With this change polling runs in a different thread to prevent
disturbing the event loop.
Diffstat (limited to 'src/qt/clientmodel.h')
-rw-r--r-- | src/qt/clientmodel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/clientmodel.h b/src/qt/clientmodel.h index 95f4521f06..d3a95d531e 100644 --- a/src/qt/clientmodel.h +++ b/src/qt/clientmodel.h @@ -90,7 +90,8 @@ private: PeerTableModel *peerTableModel; BanTableModel *banTableModel; - QTimer *pollTimer; + //! A thread to interact with m_node asynchronously + QThread* const m_thread; void subscribeToCoreSignals(); void unsubscribeFromCoreSignals(); @@ -110,7 +111,6 @@ Q_SIGNALS: void showProgress(const QString &title, int nProgress); public Q_SLOTS: - void updateTimer(); void updateNumConnections(int numConnections); void updateNetworkActive(bool networkActive); void updateAlert(); |