浏览代码

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);
       QTest::qWait(1000);
       QTimer::singleShot(0, QApplication::activeModalWidget(), SLOT(accept()));
       QTimer::singleShot(0, QApplication::activeModalWidget(), SLOT(accept()));
+      QTest::qWait(1000);
     }
     }
   };
   };
   QThreadPool::globalInstance()->start(new CloseModalDialog);
   QThreadPool::globalInstance()->start(new CloseModalDialog);