diff options
author | James Brown | 2002-09-17 04:52:50 +0000 |
---|---|---|
committer | James Brown | 2002-09-17 04:52:50 +0000 |
commit | 79857fd7e8b7d0a3585d699fc5c422841838e1d0 (patch) | |
tree | 913407cad3540d426304fcdae739333dee3a3b00 /gui/dialog.cpp | |
parent | e4ce428bddb7cf53c91cc1f5374ca3928b631245 (diff) | |
download | scummvm-rg350-79857fd7e8b7d0a3585d699fc5c422841838e1d0.tar.gz scummvm-rg350-79857fd7e8b7d0a3585d699fc5c422841838e1d0.tar.bz2 scummvm-rg350-79857fd7e8b7d0a3585d699fc5c422841838e1d0.zip |
Replace some exit()'s with a call to the OSystem quit method, as per 610251.
svn-id: r4956
Diffstat (limited to 'gui/dialog.cpp')
-rw-r--r-- | gui/dialog.cpp | 6 |
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); |