Fix drag&drop of spatialite tables (fixes #14237)

This commit is contained in:
Martin Dobias 2016-02-23 16:51:57 +08:00
parent 63be2e5303
commit c7cde461b2

View File

@ -188,7 +188,7 @@ class SLTable(Table):
if self.database().connector.isGpkg():
# QGIS has no provider to load Geopackage vectors, let's use OGR
return u"vector:ogr:%s:%s" % (self.name, self.ogrUri())
return VectorTable.mimeUri(self)
return Table.mimeUri(self)
def toMapLayer(self):
from qgis.core import QgsVectorLayer