┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/kfileitemmodeltest.cpp
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2025-11-16 13:53:58 +0100
committerMéven Car <[email protected]>2026-01-20 10:45:34 +0100
commit93a6978655fc1ce9e0fd8ea08029859f71c32db9 (patch)
treea65c505d9b951317dcc4a5d5bfc16cf7f5992995 /src/tests/kfileitemmodeltest.cpp
parent38fb26518a14f68ce66a14a1197866fed865c430 (diff)
dolphinview: when creating a subfolder expand to it if in details mode
So the new folder is in view.
Diffstat (limited to 'src/tests/kfileitemmodeltest.cpp')
-rw-r--r--src/tests/kfileitemmodeltest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/kfileitemmodeltest.cpp b/src/tests/kfileitemmodeltest.cpp
index 4c6db590d..b8e0e9893 100644
--- a/src/tests/kfileitemmodeltest.cpp
+++ b/src/tests/kfileitemmodeltest.cpp
@@ -696,6 +696,9 @@ void KFileItemModelTest::testExpandParentItems()
// Expand the parents of "a2/b2/c2".
m_model->expandParentDirectories(QUrl::fromLocalFile(m_testDir->path() + "a2/b2/c2"));
+ // a first load is occuring for a2/b2/
+ QVERIFY(loadingCompletedSpy.wait());
+ // a second load for a2/b2/c2/ expansion
QVERIFY(loadingCompletedSpy.wait());
// The model should now contain "a 1/", "a2/", "a2/b2/", and "a2/b2/c2/".