From 28b2ac7656afbf8842bfa8a27f34ed8e4625bcc1 Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Tue, 20 Jun 2006 07:36:41 +0000 Subject: [PATCH] * src/DisplayState.py (modify_statusbar): Only calc relationship of active person if active person is set svn: r6923 --- src/DisplayState.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/DisplayState.py b/src/DisplayState.py index 13df45235..f393444f2 100644 --- a/src/DisplayState.py +++ b/src/DisplayState.py @@ -324,13 +324,13 @@ class DisplayState(GrampsDb.GrampsDBCallback): if person: 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_handle(): + msg = self.display_relationship() + if msg: + name = "%s (%s)" % (name,msg) else: 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) while gtk.events_pending():