From 9317aec6a24a45163f48cac4145ebae8ab9b3c80 Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Tue, 13 Feb 2007 21:07:33 +0000 Subject: cancel button on load/save dialog is now handled correctly svn-id: r25565 --- engines/parallaction/loadsave.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engines') 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; -- cgit v1.2.3