diff framework/SVFileReader.cpp @ 576:150cadf9c5fe 3.0-integration

Don't load window size from session (#1769)
author Chris Cannam
date Wed, 21 Dec 2016 14:02:29 +0000
parents aecd5bdfc71f
children 050c7b5bd11c
line wrap: on
line diff
--- a/framework/SVFileReader.cpp	Mon Dec 19 16:34:38 2016 +0000
+++ b/framework/SVFileReader.cpp	Wed Dec 21 14:02:29 2016 +0000
@@ -393,14 +393,12 @@
     }
 
 bool
-SVFileReader::readWindow(const QXmlAttributes &attributes)
+SVFileReader::readWindow(const QXmlAttributes &)
 {
-    bool ok = false;
-
-    READ_MANDATORY(int, width, toInt);
-    READ_MANDATORY(int, height, toInt);
-
-    m_paneCallback.setWindowSize(width, height);
+    // The window element contains window dimensions, which we used to
+    // read and size the window accordingly. This was a Bad Idea [tm]
+    // and we now do nothing instead. See #1769 Loading window
+    // dimensions from session file is a really bad idea
     return true;
 }