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:
parent
60e190ceb3
commit
07b9aadcfc
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue