From 8aac02ae5e90fe39b44f86d17098828aaea29ee8 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 27 Aug 2015 09:51:01 +0200 Subject: ui: save prior to switching configs --- facetracknoir/ui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp index 3c2d8db6..04baaf5a 100644 --- a/facetracknoir/ui.cpp +++ b/facetracknoir/ui.cpp @@ -195,8 +195,6 @@ void MainWindow::refresh_config_list() if (work) return; - save(); - if (group::ini_list().size() == 0) { QFile filename(group::ini_directory() + "/" OPENTRACK_DEFAULT_CONFIG); @@ -444,6 +442,8 @@ void MainWindow::profileSelected(int index) if (old_name != new_name) { + save(); + { QSettings settings(OPENTRACK_ORG); settings.setValue (OPENTRACK_CONFIG_FILENAME_KEY, new_name); -- cgit v1.2.3