mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-11-17 19:24:05 +01:00
RMG: save geomtry in closeEvent() when emulation isn't running
This commit is contained in:
1 parent
f72688773a
commit
be437afd2f
1 file changed
+9
@@ -103,6 +103,15 @@ void MainWindow::OpenROM(QString file, QString disk, bool fullscreen, bool quitA
|
||||
|
||||
void MainWindow::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
// we have to make sure we save the geomtry
|
||||
// for the ROM browser when emulation
|
||||
// isn't running (or hasn't run at all)
|
||||
if (!this->ui_QuitAfterEmulation &&
|
||||
!this->emulationThread->isRunning())
|
||||
{
|
||||
this->storeGeometry();
|
||||
}
|
||||
|
||||
this->ui_NoSwitchToRomBrowser = true;
|
||||
this->on_Action_System_Shutdown();
|
||||
|
||||
|
||||
Reference in new issue
Block a user