diff options
Diffstat (limited to 'subsurface-mobile-main.cpp')
-rw-r--r-- | subsurface-mobile-main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/subsurface-mobile-main.cpp b/subsurface-mobile-main.cpp index d62314e14..e700455f3 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 <QApplication> #include <QLocale> @@ -97,7 +98,7 @@ int main(int argc, char **argv) set_filename(NULL); // some hard coded settings - prefs.animation_speed = 0; // we render the profile to pixmap, no animations + qPrefDisplay::set_animation_speed(0); // we render the profile to pixmap, no animations // always show the divecomputer reported ceiling in red prefs.redceiling = 1; @@ -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; } |