We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62d079c commit e20cfc0Copy full SHA for e20cfc0
python/plugins/db_manager/dlg_export_vector.py
@@ -79,6 +79,13 @@ def chooseOutputFile(self):
79
if filename == "":
80
return
81
82
+ filterString = qgis.core.QgsVectorFileWriter.filterForDriver(selectedFilter)
83
+ ext = filterString[filterString.find('.'):]
84
+ ext = ext[:ext.find(' ')]
85
+
86
+ if not filename.lower().endswith(ext):
87
+ filename += ext
88
89
# store the last used dir
90
settings.setValue(self.lastUsedVectorDirSettingsKey, QFileInfo(filename).filePath())
91
0 commit comments