aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNicola Mettifogo2007-02-13 21:07:33 +0000
committerNicola Mettifogo2007-02-13 21:07:33 +0000
commit9317aec6a24a45163f48cac4145ebae8ab9b3c80 (patch)
tree5edccda22198b071c62201c0f94287dd061686b9 /engines
parent1ce912e1063ae297407b4a9dfd5f30d4819eb284 (diff)
downloadscummvm-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.cpp5
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;