Fix bug in trunk that prevents rename of family trees
svn: r20292
This commit is contained in:
parent
0847d42cd4
commit
527ac4be59
@ -85,7 +85,7 @@ class DbGUIElement(object):
|
|||||||
This is done automatically on destruction of the object, but is
|
This is done automatically on destruction of the object, but is
|
||||||
normally needed earlier, calling this method does so.
|
normally needed earlier, calling this method does so.
|
||||||
Use _change_db method if you need to remove the callbacks because the
|
Use _change_db method if you need to remove the callbacks because the
|
||||||
database has chaned
|
database has changed
|
||||||
"""
|
"""
|
||||||
database = self.callman.database
|
database = self.callman.database
|
||||||
if database.is_open():
|
if database.is_open():
|
||||||
|
@ -327,12 +327,13 @@ class DbManager(CLIDbManager):
|
|||||||
iter = self.model.get_iter_first()
|
iter = self.model.get_iter_first()
|
||||||
while (iter):
|
while (iter):
|
||||||
path = self.model.get_path(iter)
|
path = self.model.get_path(iter)
|
||||||
iter = self.model.iter_next(iter)
|
|
||||||
if path == skippath:
|
if path == skippath:
|
||||||
continue
|
pass
|
||||||
|
else:
|
||||||
itername = self.model.get_value(iter, NAME_COL)
|
itername = self.model.get_value(iter, NAME_COL)
|
||||||
if itername.strip() == name.strip():
|
if itername.strip() == name.strip():
|
||||||
return True
|
return True
|
||||||
|
iter = self.model.iter_next(iter)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user