diff options
| author | João Barbosa <[email protected]> | 2019-01-29 00:08:20 +0000 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2019-02-03 22:23:43 +0000 |
| commit | 07b9aadcfc7cc72be9df344dd5715cf8fc78f0ad (patch) | |
| tree | c7f80708290f04af48d37937ba6054f3be0de52d | |
| parent | gui: Fix WalletController deletion (diff) | |
| download | discoin-07b9aadcfc7cc72be9df344dd5715cf8fc78f0ad.tar.xz discoin-07b9aadcfc7cc72be9df344dd5715cf8fc78f0ad.zip | |
gui: Expose BitcoinGUI::unsubscribeFromCoreSignals
Move only change that makes unsubscribeFromCoreSignals public. It must be
called if the event loop is not running otherwise core signals handlers
can deadlock.
| -rw-r--r-- | src/qt/bitcoingui.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/bitcoingui.h b/src/qt/bitcoingui.h index f1b76a6b6..c31cefe60 100644 --- a/src/qt/bitcoingui.h +++ b/src/qt/bitcoingui.h @@ -95,6 +95,9 @@ public: */ bool hasTrayIcon() const { return trayIcon; } + /** Disconnect core signals from GUI client */ + void unsubscribeFromCoreSignals(); + protected: void changeEvent(QEvent *e); void closeEvent(QCloseEvent *event); @@ -184,8 +187,6 @@ private: /** Connect core signals to GUI client */ void subscribeToCoreSignals(); - /** Disconnect core signals from GUI client */ - void unsubscribeFromCoreSignals(); /** Update UI with latest network info from model. */ void updateNetworkState(); |