Bug report #8488

"Unable to load the layer <built-in method name of QgsVectorLayer object at 0x0B8EE3D8>" when d&d from browser to DB manager

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:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:17253

Description

On Windows, not on Linux (apparently).

Associated revisions

Revision b9b8a039
Added by Jürgen Fischer over 11 years ago

fix #8488: use QgsMimeDataUtils to decode uris when dropping into db_manager

History

#2 Updated by Salvatore Larosa over 11 years ago

I don't know if we can fix this directly from browser code, but it look like if on Windows the shp path is wrong:

C:\\your.shp

will be converted in:

C\\:/your.shp

if it is not possible to fix from browser we can fix it using regexp module to remove the backslash.

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

  • Status changed from Open to Closed

#4 Updated by Salvatore Larosa over 11 years ago

better solution, but the fix seems incomplete :-)

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

Salvatore Larosa wrote:

better solution, but the fix seems incomplete :-)

Why? QgsMimeDataUtils does the colon escaping...

Also available in: Atom PDF