Fix bug in trunk that prevents rename of family trees

svn: r20292
This commit is contained in:
Benny Malengier 2012-08-30 17:58:34 +00:00
parent 0847d42cd4
commit 527ac4be59
2 changed files with 7 additions and 6 deletions

View File

@ -85,7 +85,7 @@ class DbGUIElement(object):
This is done automatically on destruction of the object, but is
normally needed earlier, calling this method does so.
Use _change_db method if you need to remove the callbacks because the
database has chaned
database has changed
"""
database = self.callman.database
if database.is_open():

View File

@ -327,12 +327,13 @@ class DbManager(CLIDbManager):
iter = self.model.get_iter_first()
while (iter):
path = self.model.get_path(iter)
iter = self.model.iter_next(iter)
if path == skippath:
continue
itername = self.model.get_value(iter, NAME_COL)
if itername.strip() == name.strip():
return True
pass
else:
itername = self.model.get_value(iter, NAME_COL)
if itername.strip() == name.strip():
return True
iter = self.model.iter_next(iter)
return False
def run(self):