mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
* 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:
parent
0890ee247d
commit
b8fd19f285
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user