diff --git a/src/WindowManager.cpp b/src/WindowManager.cpp index cddd7e4..8eb203b 100644 --- a/src/WindowManager.cpp +++ b/src/WindowManager.cpp @@ -47,6 +47,12 @@ WindowManager::WindowManager() { } } +WindowManager::~WindowManager() { + qDebug() << "~WindowManager"; + m_cleanupThread->quit(); + m_cleanupThread->wait(); +} + // ######################## APPLICATION LIFECYCLE ######################## void WindowManager::quitAfterLastWindow() { diff --git a/src/WindowManager.h b/src/WindowManager.h index 801d537..bcba0a6 100644 --- a/src/WindowManager.h +++ b/src/WindowManager.h @@ -18,6 +18,7 @@ Q_OBJECT public: explicit WindowManager(); + ~WindowManager() override; void wizardOpenWallet(); void close();