Do not save window size on exit.

deque
cc9cii 10 years ago
parent 517a797a3e
commit 115841d31d

@ -32,25 +32,6 @@ void CSVDoc::View::closeEvent (QCloseEvent *event)
event->ignore();
else
{
// save window size first
int width = 0;
int height = 0;
#ifdef Q_WS_WIN
width = frameGeometry().width();
height = frameGeometry().height();
#else
width = geometry().width();
height = geometry().height();
#endif
CSMSettings::UserSettings::instance().setDefinitions(
"Window Size/Width",
QStringList(QString::number(width)));
CSMSettings::UserSettings::instance().setDefinitions(
"Window Size/Height",
QStringList(QString::number(height)));
CSMSettings::UserSettings::instance().saveDefinitions();
// closeRequest() returns true if last document
mViewManager.removeDocAndView(mDocument);
}

Loading…
Cancel
Save