Skip to content

Commit

Permalink
db manager: fix #8146
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jul 10, 2013
1 parent 6f82a89 commit 8284300
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/plugins/db_manager/db_model.py
Expand Up @@ -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

Expand Down Expand Up @@ -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 ) )
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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.