mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
da61c1714f
commit
9732194bf8
1 changed files with 2 additions and 0 deletions
|
@ -2351,6 +2351,8 @@ void SettingsObjectWrapper::load()
|
||||||
|
|
||||||
void SettingsObjectWrapper::sync()
|
void SettingsObjectWrapper::sync()
|
||||||
{
|
{
|
||||||
|
qPrefDisplay::instance()->sync();
|
||||||
|
|
||||||
QSettings s;
|
QSettings s;
|
||||||
s.beginGroup("Planner");
|
s.beginGroup("Planner");
|
||||||
s.setValue("last_stop", prefs.last_stop);
|
s.setValue("last_stop", prefs.last_stop);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue