# HG changeset patch # User Chris Cannam # Date 1405952590 -3600 # Node ID a5e63c0af39a5c618c6a3cf6b299464e4286c91d # Parent 5641917aea9c102e67dc1b4a1f9b7d473340c334 Fix to settings reset -- needs to happen before the MainWindow ctor to avoid breaking behaviour within the current run! diff -r 5641917aea9c -r a5e63c0af39a src/main.cpp --- 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();