Skip to content
Permalink
Browse files

[DBmanager] add extension to file when exporting (fix #13733)

  • Loading branch information
alexbruy committed Jan 15, 2016
1 parent 62d079c commit e20cfc043c5022b0765523da2f62b4909fa2674a
Showing with 7 additions and 0 deletions.
  1. +7 −0 python/plugins/db_manager/dlg_export_vector.py
@@ -79,6 +79,13 @@ def chooseOutputFile(self):
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())

0 comments on commit e20cfc0

Please sign in to comment.
You can’t perform that action at this time.