mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 22:23:24 +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()
|
||||
{
|
||||
qPrefDisplay::instance()->sync();
|
||||
|
||||
QSettings s;
|
||||
s.beginGroup("Planner");
|
||||
s.setValue("last_stop", prefs.last_stop);
|
||||
|
|
Loading…
Add table
Reference in a new issue