summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-03-24 12:03:56 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-03-24 12:03:56 +0100
commit15bf5ae5f58b753d260ae5eeed5234d2943e942a (patch)
tree9749a017fb6f739b1698776c9cbb1972474e2412
parent46f70066cce0fc234cb263ada756a02113e66523 (diff)
options/bundle: reset to default if default.ini changed
-rw-r--r--options/bundle.cpp6
1 files changed, 6 insertions, 0 deletions
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 <QThread>
#include <QApplication>
@@ -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;