Mercurial > hg > svapp
changeset 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 | 022d6a9e6d75 |
children | 58354f2934ec |
files | framework/SVFileReader.cpp |
diffstat | 1 files changed, 5 insertions(+), 7 deletions(-) [+] |
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; }