aboutsummaryrefslogtreecommitdiff
path: root/gui/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/dialog.cpp')
-rw-r--r--gui/dialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp
index 2d155690dc..b2c5473383 100644
--- a/gui/dialog.cpp
+++ b/gui/dialog.cpp
@@ -373,8 +373,10 @@ void SaveLoadDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
case kOptionsCmd:
_gui->optionsDialog();
break;
- case kQuitCmd:
- exit(1);
+ case kQuitCmd: {
+ Scumm *s = _gui->getScumm();
+ s->_system->quit();
+ }
break;
default:
Dialog::handleCommand(sender, cmd, data);