summaryrefslogtreecommitdiffhomepage
path: root/gui/main-window.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-08 13:39:23 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-08 13:42:40 +0200
commit863b8cad6d95ed2492ac929066f843664a49998d (patch)
tree527a20e268234ac81b86d6e88506c3b847f5dc25 /gui/main-window.cpp
parentced9bbd4c1b7d3a3968dbf8b1731bc49ff9f9164 (diff)
add complete(?) portable config support
Diffstat (limited to 'gui/main-window.cpp')
-rw-r--r--gui/main-window.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp
index e12b85a7..7791f520 100644
--- a/gui/main-window.cpp
+++ b/gui/main-window.cpp
@@ -873,6 +873,7 @@ bool MainWindow::start_in_tray()
void MainWindow::set_profile_in_registry(const QString &profile)
{
- QSettings settings(OPENTRACK_ORG);
- settings.setValue(OPENTRACK_CONFIG_FILENAME_KEY, profile);
+ group::with_global_settings_object([&](QSettings& s) {
+ s.setValue(OPENTRACK_CONFIG_FILENAME_KEY, profile);
+ });
}