diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-27 09:51:01 +0200 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-27 09:51:16 +0200 | 
| commit | 8aac02ae5e90fe39b44f86d17098828aaea29ee8 (patch) | |
| tree | 11eb646e365f66f12e7481a240203a1f8f1a8fff /facetracknoir | |
| parent | 574c13260fa00f4e55541763880284f63752e747 (diff) | |
ui: save prior to switching configsopentrack-2.3-rc17p1
Diffstat (limited to 'facetracknoir')
| -rw-r--r-- | facetracknoir/ui.cpp | 4 | 
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); | 
