# HG changeset patch # User Chris Cannam # Date 1482328949 0 # Node ID 150cadf9c5fe4338614a86c2c2e573a6dee5ddcf # Parent 022d6a9e6d75f77a693d31765faead2e578cf014 Don't load window size from session (#1769) diff -r 022d6a9e6d75 -r 150cadf9c5fe framework/SVFileReader.cpp --- 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; }