* src/DisplayState.py (modify_statusbar): Only calc relationship of active person if active person is set
svn: r6923
This commit is contained in:
parent
7c6b044711
commit
28b2ac7656
@ -324,13 +324,13 @@ class DisplayState(GrampsDb.GrampsDBCallback):
|
|||||||
if person:
|
if person:
|
||||||
pname = NameDisplay.displayer.display(person)
|
pname = NameDisplay.displayer.display(person)
|
||||||
name = "[%s] %s" % (person.get_gramps_id(),pname)
|
name = "[%s] %s" % (person.get_gramps_id(),pname)
|
||||||
|
if Config.get(Config.STATUSBAR) > 1:
|
||||||
|
if person.handle != self.dbstate.db.get_default_handle():
|
||||||
|
msg = self.display_relationship()
|
||||||
|
if msg:
|
||||||
|
name = "%s (%s)" % (name,msg)
|
||||||
else:
|
else:
|
||||||
name = _("No active person")
|
name = _("No active person")
|
||||||
if Config.get(Config.STATUSBAR) > 1:
|
|
||||||
if person.handle != self.dbstate.db.get_default_handle():
|
|
||||||
msg = self.display_relationship()
|
|
||||||
if msg:
|
|
||||||
name = "%s (%s)" % (name,msg)
|
|
||||||
self.status.push(self.status_id,name)
|
self.status.push(self.status_id,name)
|
||||||
|
|
||||||
while gtk.events_pending():
|
while gtk.events_pending():
|
||||||
|
Loading…
Reference in New Issue
Block a user