From 115841d31dab16380b3114e0c97bfc629299535e Mon Sep 17 00:00:00 2001 From: cc9cii Date: Fri, 3 Oct 2014 05:59:24 +1000 Subject: [PATCH] Do not save window size on exit. --- apps/opencs/view/doc/view.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/apps/opencs/view/doc/view.cpp b/apps/opencs/view/doc/view.cpp index 8edeeaec7..73beee60c 100644 --- a/apps/opencs/view/doc/view.cpp +++ b/apps/opencs/view/doc/view.cpp @@ -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); }