From 3b84dbe554a76e2f024b7254c079c761429223ac Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 14 Aug 2018 10:12:32 +0200 Subject: ssrf: call sync() when exiting appl. In order to ensure preferences are saved, sync() is called when leaving the program. Signed-off-by: Jan Iversen --- subsurface-mobile-main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'subsurface-mobile-main.cpp') diff --git a/subsurface-mobile-main.cpp b/subsurface-mobile-main.cpp index d62314e14..54f5f71d2 100644 --- a/subsurface-mobile-main.cpp +++ b/subsurface-mobile-main.cpp @@ -11,6 +11,7 @@ #include "core/qt-gui.h" #include "core/qthelper.h" #include "core/subsurfacestartup.h" +#include "core/settings/qPref.h" #include #include @@ -111,6 +112,10 @@ int main(int argc, char **argv) taglist_free(g_tag_list); parse_xml_exit(); subsurface_console_exit(); + + // Sync struct preferences to disk + qPref::sync(); + free_prefs(); return 0; } -- cgit v1.2.3-70-g09d2