Handle the status bar if the active_person is None
svn: r76
This commit is contained in:
parent
02adfa2bfc
commit
3d7b30cbc5
@ -1265,6 +1265,9 @@ def change_active_person(person):
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
def modify_statusbar():
|
def modify_statusbar():
|
||||||
|
if active_person == None:
|
||||||
|
statusbar.set_status("")
|
||||||
|
else:
|
||||||
pname = Config.nameof(active_person)
|
pname = Config.nameof(active_person)
|
||||||
if Config.status_bar == 1:
|
if Config.status_bar == 1:
|
||||||
name = "[%s] %s" % (str(active_person.getId()),pname)
|
name = "[%s] %s" % (str(active_person.getId()),pname)
|
||||||
|
Loading…
Reference in New Issue
Block a user