mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[DBmanager] add extension to file when exporting (fix #13733)
This commit is contained in:
parent
62d079c6dc
commit
e20cfc043c
@ -79,6 +79,13 @@ class DlgExportVector(QDialog, Ui_Dialog):
|
||||
if filename == "":
|
||||
return
|
||||
|
||||
filterString = qgis.core.QgsVectorFileWriter.filterForDriver(selectedFilter)
|
||||
ext = filterString[filterString.find('.'):]
|
||||
ext = ext[:ext.find(' ')]
|
||||
|
||||
if not filename.lower().endswith(ext):
|
||||
filename += ext
|
||||
|
||||
# store the last used dir
|
||||
settings.setValue(self.lastUsedVectorDirSettingsKey, QFileInfo(filename).filePath())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user