Преглед на файлове

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 преди 11 години
родител
ревизия
7517369530
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      Libs/Widgets/Testing/Cpp/ctkPathListWidgetWithButtonsTest.cpp

+ 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);