aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-07-22 16:14:16 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-25 08:35:04 -0700
commit69c7ed676a7c7806f4132a899f98650fa2ad3dfb (patch)
tree2545f6992c60d5bd002ae745ed618634fc919a85
parentead05c8e17d320e723b982584cbd94c3ffdd5662 (diff)
downloadsubsurface-69c7ed676a7c7806f4132a899f98650fa2ad3dfb.tar.gz
core: add qPrefAnimations to SettingsObjectWrapper/qPref load
correct missng qPrefAnimations in global load functions Signed-off-by: Jan Iversen <jani@apache.org>
-rw-r--r--core/settings/qPref.cpp1
-rw-r--r--core/subsurface-qt/SettingsObjectWrapper.cpp4
2 files changed, 2 insertions, 3 deletions
diff --git a/core/settings/qPref.cpp b/core/settings/qPref.cpp
index fb80e9d92..f5239ac5d 100644
--- a/core/settings/qPref.cpp
+++ b/core/settings/qPref.cpp
@@ -15,6 +15,7 @@ static qPref *self = new qPref;
void qPref::loadSync(bool doSync)
{
+ qPrefAnimations::instance()->loadSync(doSync);
qPrefCloudStorage::instance()->loadSync(doSync);
qPrefDisplay::instance()->loadSync(doSync);
}
diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp
index 31920fded..9020143d2 100644
--- a/core/subsurface-qt/SettingsObjectWrapper.cpp
+++ b/core/subsurface-qt/SettingsObjectWrapper.cpp
@@ -2020,9 +2020,7 @@ void SettingsObjectWrapper::load()
qPrefDisplay::instance()->load();
- s.beginGroup("Animations");
- GET_INT("animation_speed", animation_speed);
- s.endGroup();
+ qPrefAnimations::instance()->load();
s.beginGroup("Network");
GET_INT_DEF("proxy_type", proxy_type, QNetworkProxy::DefaultProxy);