┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2016-12-03 18:04:24 +0100
committerElvis Angelaccio <[email protected]>2016-12-03 18:04:24 +0100
commitabb7799f7e007601a5f75ea85d9081bdb4d06a0a (patch)
tree296166082ea7a2203361d0ba924fd1809229239a /src
parent73a6bf4e10dc5d49b5752a9bd23fc332075da244 (diff)
Fix viewpropertiestest when GlobalViewProps is true
The test was not saving its changes to the global settings, so it was passing on the CI only because the default value of GlobalViewProps is already false. If GlobalViewProps was set to true instead, testAutoSave() would fail because save() was not called and GlobalViewProps was not
Diffstat (limited to 'src')
-rw-r--r--src/tests/viewpropertiestest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/viewpropertiestest.cpp b/src/tests/viewpropertiestest.cpp
index 482e4127d..114afdc33 100644
--- a/src/tests/viewpropertiestest.cpp
+++ b/src/tests/viewpropertiestest.cpp
@@ -44,6 +44,7 @@ void ViewPropertiesTest::init()
{
m_globalViewProps = GeneralSettings::self()->globalViewProps();
GeneralSettings::self()->setGlobalViewProps(false);
+ GeneralSettings::self()->save();
// It is mandatory to create the test-directory inside the home-directory
// of the user: ViewProperties does not write inside directories
@@ -58,6 +59,7 @@ void ViewPropertiesTest::cleanup()
m_testDir = 0;
GeneralSettings::self()->setGlobalViewProps(m_globalViewProps);
+ GeneralSettings::self()->save();
}
/**