summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'facetracknoir/ui.cpp')
-rw-r--r--facetracknoir/ui.cpp4
1 files 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);