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; }
/** 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();