Explorar o código

Fix timeout in ctkPathListWidgetWithButtonsTest with Qt 4.6.3

The thread was deleted and the singleshot was not executed before the
dialog was closed.
Closes #340
Julien Finet %!s(int64=11) %!d(string=hai) anos
pai
achega
7517369530

+ 1 - 0
Libs/Widgets/Testing/Cpp/ctkPathListWidgetWithButtonsTest.cpp

@@ -75,6 +75,7 @@ void ctkPathListWidgetWithButtonsTester::testButtons()
     {
       QTest::qWait(1000);
       QTimer::singleShot(0, QApplication::activeModalWidget(), SLOT(accept()));
+      QTest::qWait(1000);
     }
   };
   QThreadPool::globalInstance()->start(new CloseModalDialog);