Bug report #13712

Importing files by drag and drop from folder (Win7) not working (DB Manager)

Added by Paul Kanelli about 4 years ago. Updated over 3 years ago.

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

Description

In the DB Manager I want to import shape files in a PostGIS schema using drag and drop from a Windows 7 folder. Unfortunately nothing happens in QGIS 2.12.

Associated revisions

Revision 1f0fce78
Added by Jürgen Fischer over 3 years ago

db manager: fix drag and drop import (fixes #13712)

History

#1 Updated by Giovanni Manghi about 4 years ago

  • Affected QGIS version changed from 2.12.0 to master
  • Category set to DB Manager
  • Priority changed from High to Severe/Regression
  • Target version set to Future Release - High Priority

Confirmed, it worked until 2.8.3.

#2 Updated by Giovanni Manghi almost 4 years ago

  • Operating System deleted (Windows 7)

still true on the latest master, also on Linux.

#3 Updated by Saber Razmjooei over 3 years ago

Here is the error if it helps:

TypeError: TreeItem.itemChanged[] signal has 0 argument(s) but 1 provided
Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\db_manager\\db_model.py", line 562, in dropMimeData
item.itemChanged.emit(item)
TypeError: TreeItem.itemChanged[] signal has 0 argument(s) but 1 provided

#4 Updated by Salvatore Larosa over 3 years ago

  • Assignee set to Salvatore Larosa

#5 Updated by Salvatore Larosa over 3 years ago

Please could anyone remove the item argument of emit() at the line 562 of the db_model.py file and report back if it has worked?

Restart QGIS just after having modified the file and retry.

#6 Updated by Giovanni Manghi over 3 years ago

  • Target version changed from Future Release - High Priority to Version 2.16

Salvatore Larosa wrote:

Please could anyone remove the item argument of emit() at the line 562 of the db_model.py file and report back if it has worked?

Restart QGIS just after having modified the file and retry.

Hi Salvatore,
the change solves the python error but also no import.

#7 Updated by Jürgen Fischer over 3 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF