Bug report #8138

DB manager "Import vector layer" python error

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

Status:Closed
Priority:Severe/Regression
Assignee:-
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

Description

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 over 11 years ago

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

History

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

  • Status changed from Open to Closed

Also available in: Atom PDF