From 6bbb7b0a87461207896f90fbe425c7659c2d4063 Mon Sep 17 00:00:00 2001 From: David Faure Date: Sat, 9 Feb 2019 16:27:37 +0100 Subject: Fix destroying QThread while still running -> warning -> crash --- tests/ECMPoQmToolsTest/tr_thread_test.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/ECMPoQmToolsTest/tr_thread_test.cpp') diff --git a/tests/ECMPoQmToolsTest/tr_thread_test.cpp b/tests/ECMPoQmToolsTest/tr_thread_test.cpp index b45dd575..6f7bac0a 100644 --- a/tests/ECMPoQmToolsTest/tr_thread_test.cpp +++ b/tests/ECMPoQmToolsTest/tr_thread_test.cpp @@ -90,6 +90,8 @@ int main(int argc, char** argv) app.exec(); + thread.wait(); + return 0; } -- cgit v1.2.1