]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/tests/kfileitemmodeltest.cpp
Don't crash if we don't have a terminal
[dolphin.git] / src / tests / kfileitemmodeltest.cpp
index c539799707ae1b8870f5f19c15f436399b858d49..f081eba86032f57e3a6a8d7f8b9919df7445f7c9 100644 (file)
@@ -460,7 +460,7 @@ void KFileItemModelTest::testModelConsistencyWhenInsertingItems()
         }
 
         m_model->m_dirLister->updateDirectory(m_testDir->url());
-        if (itemsInsertedSpy.count() == 0) {
+        if (itemsInsertedSpy.isEmpty()) {
             QVERIFY(itemsInsertedSpy.wait());
         }