소스 검색

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 12 년 전
부모
커밋
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);