Qt/MainWindow: Call Config::Save last before destruction
This commit is contained in:
parent
7b0d7799b5
commit
e380df2e59
|
@ -125,8 +125,6 @@ MainWindow::~MainWindow()
|
||||||
m_render_widget->deleteLater();
|
m_render_widget->deleteLater();
|
||||||
ShutdownControllers();
|
ShutdownControllers();
|
||||||
|
|
||||||
Config::Save();
|
|
||||||
|
|
||||||
QSettings& settings = Settings::GetQSettings();
|
QSettings& settings = Settings::GetQSettings();
|
||||||
|
|
||||||
settings.setValue(QStringLiteral("mainwindow/state"), saveState());
|
settings.setValue(QStringLiteral("mainwindow/state"), saveState());
|
||||||
|
@ -136,6 +134,8 @@ MainWindow::~MainWindow()
|
||||||
|
|
||||||
SConfig::GetInstance().iRenderWindowXPos = m_render_widget_position.x();
|
SConfig::GetInstance().iRenderWindowXPos = m_render_widget_position.x();
|
||||||
SConfig::GetInstance().iRenderWindowYPos = m_render_widget_position.y();
|
SConfig::GetInstance().iRenderWindowYPos = m_render_widget_position.y();
|
||||||
|
|
||||||
|
Config::Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::InitControllers()
|
void MainWindow::InitControllers()
|
||||||
|
|
Loading…
Reference in New Issue