WindowManager: wait for cleanup thread

This commit is contained in:
tobtoht
2021-07-11 17:55:42 +02:00
parent f5307862bd
commit 281f49f923
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -47,6 +47,12 @@ WindowManager::WindowManager() {
}
}
WindowManager::~WindowManager() {
qDebug() << "~WindowManager";
m_cleanupThread->quit();
m_cleanupThread->wait();
}
// ######################## APPLICATION LIFECYCLE ########################
void WindowManager::quitAfterLastWindow() {
+1
View File
@@ -18,6 +18,7 @@ Q_OBJECT
public:
explicit WindowManager();
~WindowManager() override;
void wizardOpenWallet();
void close();