* don't leak the fileDialog if no file is chosen

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2560 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
stevehalasz 2005-01-01 17:05:28 +00:00
parent 0890ee247d
commit b8fd19f285

View File

@ -1610,6 +1610,7 @@ void QgisApp::fileOpen()
fullPath = openFileDialog->selectedFile();
} else {
// if they didn't select anything, just return
delete openFileDialog;
return;
}
@ -1745,6 +1746,7 @@ void QgisApp::fileSaveAs()
fullPath = saveFileDialog->selectedFile();
} else {
// if they didn't select anything, just return
delete saveFileDialog;
return;
}