mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 19:49:28 +00:00
fix crash on exit
This commit is contained in:
parent
e1e7a46b77
commit
91552a48fb
2 changed files with 13 additions and 5 deletions
|
@ -85,10 +85,18 @@ void WindowManager::close() {
|
||||||
window->close();
|
window->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
m_wizard->deleteLater();
|
if (m_splashDialog) {
|
||||||
m_splashDialog->deleteLater();
|
m_splashDialog->deleteLater();
|
||||||
m_tray->deleteLater();
|
}
|
||||||
m_docsDialog->deleteLater();
|
if (m_tray) {
|
||||||
|
m_tray->deleteLater();
|
||||||
|
}
|
||||||
|
if (m_wizard) {
|
||||||
|
m_wizard->deleteLater();
|
||||||
|
}
|
||||||
|
if (m_docsDialog) {
|
||||||
|
m_docsDialog->deleteLater();
|
||||||
|
}
|
||||||
|
|
||||||
torManager()->stop();
|
torManager()->stop();
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ private:
|
||||||
SplashDialog *m_splashDialog = nullptr;
|
SplashDialog *m_splashDialog = nullptr;
|
||||||
DocsDialog *m_docsDialog = nullptr;
|
DocsDialog *m_docsDialog = nullptr;
|
||||||
|
|
||||||
QSystemTrayIcon *m_tray;
|
QSystemTrayIcon *m_tray = nullptr;
|
||||||
|
|
||||||
QMap<QString, QString> m_skins;
|
QMap<QString, QString> m_skins;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue