Bug report #8138

DB manager "Import vector layer" python error

Added by Giovanni Manghi almost 11 years ago. Updated almost 11 years ago.

Category:DB Manager
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:16968


when clicking on the button to choose a vector

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/db_manager/dlg_import_vector.py", line 128, in chooseInputFile
    filename = QFileDialog.getOpenFileName(self, self.tr("Choose the file to import"), lastDir, vectorFormats, lastVectorFormat)
TypeError: QFileDialog.getOpenFileName(QWidget parent=None, QString caption=QString(), QString directory=QString(), QString filter=QString(), QString selectedFilter=None, QFileDialog.Options options=0): argument 5 has unexpected type 'unicode'

Associated revisions

Revision 49e5c8f8
Added by Jürgen Fischer almost 11 years ago

use QFileDialog.getOpenFileNameAndFilter variant when setting last filter (fixes #8138)


#1 Updated by Jürgen Fischer almost 11 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF