WindowManager: wait for cleanup thread

This commit is contained in:
tobtoht 2021-07-11 17:55:42 +02:00
parent f5307862bd
commit 281f49f923
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C
2 changed files with 7 additions and 0 deletions

View file

@ -47,6 +47,12 @@ WindowManager::WindowManager() {
}
}
WindowManager::~WindowManager() {
qDebug() << "~WindowManager";
m_cleanupThread->quit();
m_cleanupThread->wait();
}
// ######################## APPLICATION LIFECYCLE ########################
void WindowManager::quitAfterLastWindow() {

View file

@ -18,6 +18,7 @@ Q_OBJECT
public:
explicit WindowManager();
~WindowManager() override;
void wizardOpenWallet();
void close();