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.
This commit is contained in:
João Barbosa 2019-01-29 00:08:20 +00:00
parent 60e190ceb3
commit 07b9aadcfc

View file

@ -95,6 +95,9 @@ public:
*/ */
bool hasTrayIcon() const { return trayIcon; } bool hasTrayIcon() const { return trayIcon; }
/** Disconnect core signals from GUI client */
void unsubscribeFromCoreSignals();
protected: protected:
void changeEvent(QEvent *e); void changeEvent(QEvent *e);
void closeEvent(QCloseEvent *event); void closeEvent(QCloseEvent *event);
@ -184,8 +187,6 @@ private:
/** Connect core signals to GUI client */ /** Connect core signals to GUI client */
void subscribeToCoreSignals(); void subscribeToCoreSignals();
/** Disconnect core signals from GUI client */
void unsubscribeFromCoreSignals();
/** Update UI with latest network info from model. */ /** Update UI with latest network info from model. */
void updateNetworkState(); void updateNetworkState();