mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
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
This commit is contained in:
parent
54a2f3487b
commit
c94d100beb
@ -310,6 +310,7 @@ void QgsLegendLayerFile::saveAsShapefile()
|
||||
dirName,
|
||||
filter,
|
||||
QString("UTF-8"));
|
||||
openFileDialog->setAcceptMode(QFileDialog::AcceptSave);
|
||||
|
||||
// allow for selection of more than one file
|
||||
//openFileDialog->setMode(QFileDialog::AnyFile);
|
||||
@ -317,8 +318,11 @@ void QgsLegendLayerFile::saveAsShapefile()
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user