diff options
author | Nicola Mettifogo | 2007-02-13 21:07:33 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-02-13 21:07:33 +0000 |
commit | 9317aec6a24a45163f48cac4145ebae8ab9b3c80 (patch) | |
tree | 5edccda22198b071c62201c0f94287dd061686b9 /engines | |
parent | 1ce912e1063ae297407b4a9dfd5f30d4819eb284 (diff) | |
download | scummvm-rg350-9317aec6a24a45163f48cac4145ebae8ab9b3c80.tar.gz scummvm-rg350-9317aec6a24a45163f48cac4145ebae8ab9b3c80.tar.bz2 scummvm-rg350-9317aec6a24a45163f48cac4145ebae8ab9b3c80.zip |
cancel button on load/save dialog is now handled correctly
svn-id: r25565
Diffstat (limited to 'engines')
-rw-r--r-- | engines/parallaction/loadsave.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/parallaction/loadsave.cpp b/engines/parallaction/loadsave.cpp index b950f2f24d..04e1845067 100644 --- a/engines/parallaction/loadsave.cpp +++ b/engines/parallaction/loadsave.cpp @@ -715,7 +715,10 @@ int Parallaction::selectSaveFile(uint16 arg_0, const char* caption, const char* slc->setList(l); int idx = slc->runModal(); - _saveFileName = slc->getResultString(); + if (idx >= 0) { + _saveFileName = slc->getResultString(); + } + delete slc; return idx; |