From 15bf5ae5f58b753d260ae5eeed5234d2943e942a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 24 Mar 2017 12:03:56 +0100 Subject: options/bundle: reset to default if default.ini changed --- options/bundle.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/options/bundle.cpp b/options/bundle.cpp index 0bfeef3b..57baa99d 100644 --- a/options/bundle.cpp +++ b/options/bundle.cpp @@ -8,6 +8,7 @@ #include "bundle.hpp" #include "value.hpp" +#include "defs.hpp" #include #include @@ -77,6 +78,11 @@ void bundle::save_deferred(QSettings& s) if (QThread::currentThread() != qApp->thread()) qCritical() << "group::save - current thread not ui thread"; + if (group::ini_filename() == OPENTRACK_DEFAULT_CONFIG_Q) + { + set_all_to_default(); + } + if (group_name.size() == 0) return; -- cgit v1.2.3