Commit 73d508b2 authored by Don Gagne's avatar Don Gagne

Wait after window close to prevent qml warnings

parent 0f240fc6
...@@ -423,5 +423,9 @@ void UnitTest::_closeMainWindow(bool cancelExpected) ...@@ -423,5 +423,9 @@ void UnitTest::_closeMainWindow(bool cancelExpected)
mainWindowSpy.wait(2000); mainWindowSpy.wait(2000);
QCOMPARE(mainWindowSpy.count(), cancelExpected ? 0 : 1); QCOMPARE(mainWindowSpy.count(), cancelExpected ? 0 : 1);
// This leaves enough time for any dangling Qml components to get cleaned up.
// This prevents qWarning from bad references in Qml
QTest::qWait(1000);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment