forked from teamnwah/openmw-tes3coop
Do not save window size on exit.
This commit is contained in:
parent
517a797a3e
commit
115841d31d
1 changed files with 0 additions and 19 deletions
|
@ -32,25 +32,6 @@ void CSVDoc::View::closeEvent (QCloseEvent *event)
|
||||||
event->ignore();
|
event->ignore();
|
||||||
else
|
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
|
// closeRequest() returns true if last document
|
||||||
mViewManager.removeDocAndView(mDocument);
|
mViewManager.removeDocAndView(mDocument);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue