changeset 382:a5e63c0af39a tonioni_experiment_july2014 v0.7_experiment_july2014

Fix to settings reset -- needs to happen before the MainWindow ctor to avoid breaking behaviour within the current run!
author Chris Cannam
date Mon, 21 Jul 2014 15:23:10 +0100
parents 5641917aea9c
children 9b4f670374a1
files src/main.cpp
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.cpp	Mon Jul 21 14:24:01 2014 +0100
+++ b/src/main.cpp	Mon Jul 21 15:23:10 2014 +0100
@@ -167,6 +167,13 @@
     QApplication::setOrganizationDomain("qmul.ac.uk");
     QApplication::setApplicationName("Tony");
 
+    {
+        //!!! For Tony experiments:
+        QSettings settings;
+        settings.clear();
+        settings.sync();
+    }
+
     InteractiveFileFinder::getInstance()->setApplicationSessionExtension("ton");
 
     QSplashScreen *splash = 0;
@@ -217,13 +224,6 @@
     if (height < 450) height = (available.height() * 2) / 3;
     if (width > height * 2) width = height * 2;
 
-    {
-        //!!! For Tony experiments:
-        QSettings settings;
-        settings.clear();
-        settings.sync();
-    }
-
     QSettings settings;
     settings.beginGroup("MainWindow");
     QSize size = settings.value("size", QSize(width, height)).toSize();