]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
WindowManager: wait for cleanup thread
authortobtoht <thotbot@protonmail.com>
Sun, 11 Jul 2021 15:55:42 +0000 (17:55 +0200)
committertobtoht <thotbot@protonmail.com>
Sun, 11 Jul 2021 15:55:42 +0000 (17:55 +0200)
src/WindowManager.cpp
src/WindowManager.h

index cddd7e4bc627773e52b605e8a85ab08f2d002e0b..8eb203b943aa4007ce6d1c781bdae35ff0c85907 100644 (file)
@@ -47,6 +47,12 @@ WindowManager::WindowManager() {
     }
 }
 
+WindowManager::~WindowManager() {
+    qDebug() << "~WindowManager";
+    m_cleanupThread->quit();
+    m_cleanupThread->wait();
+}
+
 // ######################## APPLICATION LIFECYCLE ########################
 
 void WindowManager::quitAfterLastWindow() {
index 801d537d8917a10eae9a240e8441f5d4732a2aeb..bcba0a6cb1a31bdf6238af11a90d02351fa5e32b 100644 (file)
@@ -18,6 +18,7 @@ Q_OBJECT
 
 public:
     explicit WindowManager();
+    ~WindowManager() override;
 
     void wizardOpenWallet();
     void close();