bug fix, on delete return old path of deleted row
svn: r12725
This commit is contained in:
parent
d182a5797f
commit
7a5e5f4476
@ -280,13 +280,14 @@ class FlatNodeMap(object):
|
||||
del self._index2hndl[index]
|
||||
del self._hndl2index[handle]
|
||||
#update self.__corr so it remains correct
|
||||
delpath = self.real_path(index)
|
||||
if self._reverse:
|
||||
self.__corr = (len(self._index2hndl) - 1, -1)
|
||||
#update the handle2path map so it remains correct
|
||||
for key, val in self._hndl2index.iteritems():
|
||||
if val > index:
|
||||
self._hndl2index[key] -= 1
|
||||
return self.real_path(index)
|
||||
return delpath
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user