Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Save as shapefile: use save dialog and remember the last directory
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6881 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 11, 2007
1 parent ca5e2ea commit cd4f57e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/legend/qgslegendlayerfile.cpp
Expand Up @@ -310,15 +310,19 @@ void QgsLegendLayerFile::saveAsShapefile()
dirName,
filter,
QString("UTF-8"));
openFileDialog->setAcceptMode(QFileDialog::AcceptSave);

// allow for selection of more than one file
//openFileDialog->setMode(QFileDialog::AnyFile);

if (openFileDialog->exec() != QDialog::Accepted)
return;


QString encoding = openFileDialog->encoding();
QString shapefileName = openFileDialog->selectedFile();
settings.writeEntry("/UI/lastShapefileDir", QFileInfo(shapefileName).absolutePath());


if (shapefileName.isNull())
return;
Expand Down

0 comments on commit cd4f57e

Please sign in to comment.