Skip to content
Permalink
Browse files

db manager: fix #8146

  • Loading branch information
jef-n committed Jul 10, 2013
1 parent 6f82a89 commit 8284300090f5704949796b86832b1061166dddf3
Showing with 4 additions and 3 deletions.
  1. +4 −3 python/plugins/db_manager/db_model.py
@@ -94,7 +94,7 @@ def icon(self):
def path(self):
pathList = []
if self.parent():
pathList.append( self.parent().path() )
pathList.extend( self.parent().path() )
pathList.append( self.data(0) )
return pathList

@@ -253,7 +253,7 @@ def icon(self):
def path(self):
pathList = []
if self.parent():
pathList.append( self.parent().path() )
pathList.extend( self.parent().path() )

if self.getItemData().type == Table.VectorType:
pathList.append( "%s::%s" % ( self.data(0), self.getItemData().geomColumn ) )
@@ -288,6 +288,8 @@ def refreshItem(self, item):
index = self._rItem2Index(item)
if index.isValid():
self._refreshIndex(index)
else:
qDebug( "invalid index" )

def _rItem2Index(self, item, parent=None):
if parent == None:
@@ -602,4 +604,3 @@ def importVector(self, inLayer, outDb, outUri, parent):
self._refreshIndex( parent )
finally:
inLayer.deleteLater()

0 comments on commit 8284300

Please sign in to comment.
You can’t perform that action at this time.