diff ui/main.cpp @ 499:077b4342d69b

Default autostart to true and change setting to bool
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 25 Apr 2014 10:16:46 +0000
parents 77d478a34f45
children 2ea11a95aa4a
line wrap: on
line diff
--- a/ui/main.cpp	Fri Apr 25 10:16:18 2014 +0000
+++ b/ui/main.cpp	Fri Apr 25 10:16:46 2014 +0000
@@ -48,10 +48,10 @@
 
     QSettings settings;
     settings.beginGroup("settings");
-    int autoStart = settings.value("autostart").toInt();
+    bool autoStart = settings.value("autostart", true).toBool();
     settings.endGroup();
 
-    if (trayMode && autoStart <= 0) {
+    if (trayMode && !autoStart) {
         return 0;
     }
 

http://wald.intevation.org/projects/trustbridge/