┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2019-05-05 16:02:46 +0200
committerElvis Angelaccio <[email protected]>2019-05-05 16:02:46 +0200
commitf3a86bf29e9165bbe2861c0af5e537d6d6f80854 (patch)
treea2fa2a4803bef98584cf01811398a7439cbb8fab /src
parent4f232fb82f236def4947ac48dee8326aa32615cb (diff)
parent33a0d17ea8d4de81322ca51a5acc1356f37798ed (diff)
Merge branch 'Applications/19.04'
Diffstat (limited to 'src')
-rw-r--r--src/tests/placesitemmodeltest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/placesitemmodeltest.cpp b/src/tests/placesitemmodeltest.cpp
index fac0931a6..4ed4945b2 100644
--- a/src/tests/placesitemmodeltest.cpp
+++ b/src/tests/placesitemmodeltest.cpp
@@ -476,10 +476,12 @@ void PlacesItemModelTest::testDefaultViewProperties()
QFETCH(bool, expectedPreviewShow);
QFETCH(QList<QByteArray>, expectedVisibleRole);
- // In order to test the default view properties, turn off the global view properties.
+ // In order to test the default view properties, turn off the global view properties and re-init the test to reload the model.
GeneralSettings* settings = GeneralSettings::self();
settings->setGlobalViewProps(false);
settings->save();
+ cleanup();
+ init();
ViewProperties properties(KFilePlacesModel::convertedUrl(url));
QCOMPARE(properties.viewMode(), expectedViewMode);