Sporadically crashes on Windows when exit. Fixes #3177

1) Shutdown the python server properly.
  2) Disabled "Shutdown server" menu till server is not successfully started.

Initial patch sent by Maxim, modified by Akshay Joshi.
This commit is contained in:
Maxim Zakharov
2018-03-15 13:26:24 +05:30
committed by Akshay Joshi
parent 3c4359270e
commit 54b1a79cb6
7 changed files with 91 additions and 1 deletions
+4
View File
@@ -31,6 +31,7 @@ public:
bool Init();
void setAppServerUrl(QString appServerUrl);
void enableShutdownMenu();
private:
void createTrayIcon();
@@ -56,6 +57,9 @@ private slots:
void onConfig();
void onLog();
void onQuit();
signals:
void shutdownSignal(QUrl);
};
#endif // TRAYICON_H