diff options
author | jan Iversen <jani@apache.org> | 2018-07-04 22:39:53 +0200 |
---|---|---|
committer | jan Iversen <jani@apache.org> | 2018-07-12 18:44:31 +0200 |
commit | 9732194bf8e018d93fc3b0244992b23d2cdd2859 (patch) | |
tree | 48129ce555815ac03da6a5311c2b4ace3f5008b1 /core/subsurface-qt/SettingsObjectWrapper.cpp | |
parent | da61c1714f24d42f5295bcd60d704e65f503b174 (diff) | |
download | subsurface-9732194bf8e018d93fc3b0244992b23d2cdd2859.tar.gz |
core: sync display variables from struct preferences when ssrf terminates
Add qPrefDisplay sync to sync in SettingsObjectWrapper.
If a program part change display variables in struct preferences, they would
not be saved on disk.
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/subsurface-qt/SettingsObjectWrapper.cpp')
-rw-r--r-- | core/subsurface-qt/SettingsObjectWrapper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp index 416c645b6..57c3de8c7 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/core/subsurface-qt/SettingsObjectWrapper.cpp @@ -2351,6 +2351,8 @@ void SettingsObjectWrapper::load() void SettingsObjectWrapper::sync() { + qPrefDisplay::instance()->sync(); + QSettings s; s.beginGroup("Planner"); s.setValue("last_stop", prefs.last_stop); |