diff main/MainWindow.cpp @ 624:c0a20cd1a9ff

If maximised on exit, don't save (maximised) geometry but instead mark as maximised and maximise on restart
author Chris Cannam
date Fri, 20 Sep 2013 16:38:00 +0100
parents 110eecb5d9f6
children 2484381b53a1
line wrap: on
line diff
--- a/main/MainWindow.cpp	Mon Sep 16 15:47:42 2013 +0100
+++ b/main/MainWindow.cpp	Fri Sep 20 16:38:00 2013 +0100
@@ -3094,8 +3094,11 @@
 
     QSettings settings;
     settings.beginGroup("MainWindow");
-    settings.setValue("size", size());
-    settings.setValue("position", pos());
+    settings.setValue("maximised", isMaximized());
+    if (!isMaximized()) {
+        settings.setValue("size", size());
+        settings.setValue("position", pos());
+    }
     settings.endGroup();
 
     if (m_preferencesDialog &&