2006-05-08 Don Allingham <don@gramps-project.org>

* src/GrampsDb/_GrampsDbBase.py: get_default_handle()
	* src/DisplayState.py: use get_default_handle, fix race condition 



svn: r6591
This commit is contained in:
Don Allingham
2006-05-09 04:15:04 +00:00
parent 1dae055ef2
commit 9bc839681b
3 changed files with 11 additions and 1 deletions

View File

@ -329,7 +329,7 @@ class DisplayState(GrampsDb.GrampsDBCallback):
pname = NameDisplay.displayer.display(person)
name = "[%s] %s" % (person.get_gramps_id(),pname)
if Config.get(Config.STATUSBAR) > 1:
if person.handle != self.dbstate.db.get_default_person().handle:
if person.handle != self.dbstate.db.get_default_handle():
msg = self.display_relationship()
if msg:
name = "%s (%s)" % (name,msg)