From 324b1d2dfc885226c2df81e78ddea4b6098aeaf8 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 28 Oct 2016 11:51:13 +0200 Subject: Fix default file behavior tests Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- core/subsurface-qt/SettingsObjectWrapper.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'core/subsurface-qt') diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp index 7298f9006..7626befdb 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/core/subsurface-qt/SettingsObjectWrapper.cpp @@ -1744,6 +1744,7 @@ void GeneralSettingsObjectWrapper::setDefaultFileBehavior(short value) QSettings s; s.beginGroup(group); s.setValue("default_file_behavior", value); + prefs.default_file_behavior = value; if (prefs.default_file_behavior == UNDEFINED_DEFAULT_FILE) { // undefined, so check if there's a filename set and -- cgit v1.2.3-70-g09d2