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
@ -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…
x
Reference in New Issue
Block a user