summaryrefslogtreecommitdiffstats
path: root/subsurface-desktop-main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-desktop-main.cpp')
-rw-r--r--subsurface-desktop-main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/subsurface-desktop-main.cpp b/subsurface-desktop-main.cpp
index 5ccd9951c..cec1a159b 100644
--- a/subsurface-desktop-main.cpp
+++ b/subsurface-desktop-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 "desktop-widgets/diveplanner.h"
#include "desktop-widgets/mainwindow.h"
#include "desktop-widgets/preferences/preferencesdialog.h"
@@ -118,6 +119,10 @@ int main(int argc, char **argv)
free((void *)default_directory);
free((void *)default_filename);
subsurface_console_exit();
+
+ // Sync struct preferences to disk
+ qPref::sync();
+
free_prefs();
return 0;
}