Mercurial > hg > svapp
comparison 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 |
comparison
equal
deleted
inserted
replaced
568:022d6a9e6d75 | 576:150cadf9c5fe |
---|---|
391 cerr << "WARNING: SV-XML: Missing or invalid mandatory " #TYPE " attribute \"" #NAME "\"" << endl; \ | 391 cerr << "WARNING: SV-XML: Missing or invalid mandatory " #TYPE " attribute \"" #NAME "\"" << endl; \ |
392 return false; \ | 392 return false; \ |
393 } | 393 } |
394 | 394 |
395 bool | 395 bool |
396 SVFileReader::readWindow(const QXmlAttributes &attributes) | 396 SVFileReader::readWindow(const QXmlAttributes &) |
397 { | 397 { |
398 bool ok = false; | 398 // The window element contains window dimensions, which we used to |
399 | 399 // read and size the window accordingly. This was a Bad Idea [tm] |
400 READ_MANDATORY(int, width, toInt); | 400 // and we now do nothing instead. See #1769 Loading window |
401 READ_MANDATORY(int, height, toInt); | 401 // dimensions from session file is a really bad idea |
402 | |
403 m_paneCallback.setWindowSize(width, height); | |
404 return true; | 402 return true; |
405 } | 403 } |
406 | 404 |
407 void | 405 void |
408 SVFileReader::addUnaddedModels() | 406 SVFileReader::addUnaddedModels() |