Skip to content

Commit c94d100

Browse files
author
mhugent
committedApr 11, 2007
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
1 parent 54a2f34 commit c94d100

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/app/legend/qgslegendlayerfile.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,15 +310,19 @@ void QgsLegendLayerFile::saveAsShapefile()
310310
dirName,
311311
filter,
312312
QString("UTF-8"));
313+
openFileDialog->setAcceptMode(QFileDialog::AcceptSave);
313314

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

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

321+
320322
QString encoding = openFileDialog->encoding();
321323
QString shapefileName = openFileDialog->selectedFile();
324+
settings.writeEntry("/UI/lastShapefileDir", QFileInfo(shapefileName).absolutePath());
325+
322326

323327
if (shapefileName.isNull())
324328
return;

0 commit comments

Comments
 (0)
Please sign in to comment.