cancel button on load/save dialog is now handled correctly

svn-id: r25565
This commit is contained in:
Nicola Mettifogo 2007-02-13 21:07:33 +00:00
parent 1ce912e106
commit 9317aec6a2

View File

@ -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;