Merge pull request #6799 from spycrab/qt_config_save

Qt/MainWindow: Call Config::Save last before destruction
This commit is contained in:
spycrab 2018-05-10 12:14:20 +02:00 committed by GitHub
commit 060c750a89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -125,8 +125,6 @@ MainWindow::~MainWindow()
m_render_widget->deleteLater();
ShutdownControllers();
Config::Save();
QSettings& settings = Settings::GetQSettings();
settings.setValue(QStringLiteral("mainwindow/state"), saveState());
@ -136,6 +134,8 @@ MainWindow::~MainWindow()
SConfig::GetInstance().iRenderWindowXPos = m_render_widget_position.x();
SConfig::GetInstance().iRenderWindowYPos = m_render_widget_position.y();
Config::Save();
}
void MainWindow::InitControllers()