Force event processing after adding entries to prevent test failure

This commit is contained in:
Janek Bevendorff 2017-03-17 02:08:09 +01:00 committed by Jonathan White
parent 80fc1e5309
commit c4d6fa855c

View File

@ -316,6 +316,8 @@ void TestGui::testAddEntry()
QTest::keyClicks(titleEdit, "something 3");
QTest::mouseClick(editEntryWidgetButtonBox->button(QDialogButtonBox::Ok), Qt::LeftButton);
QApplication::processEvents();
// Confirm that 4 entries now exist
QTRY_COMPARE(entryView->model()->rowCount(), 4);
}