Skip to content
Permalink
Browse files
Save as shapefile: use save dialog and remember the last directory
git-svn-id: http://svn.osgeo.org/qgis/trunk@6881 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 11, 2007
1 parent 54a2f34 commit c94d100bebf74abc4799d233129b3922e26a3fb2
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/legend/qgslegendlayerfile.cpp
@@ -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;

0 comments on commit c94d100

Please sign in to comment.