Don't emit signal to change active person if that is already the active person
svn: r12498
This commit is contained in:
parent
890138b294
commit
f18040a0d0
@ -53,8 +53,12 @@ class DbState(Callback):
|
||||
Change the active person and emits a signal to notify those who
|
||||
are interested.
|
||||
"""
|
||||
previous_active_person = self.active
|
||||
self.active = person
|
||||
if person:
|
||||
if previous_active_person and previous_active_person.handle == person.handle:
|
||||
pass # don't change to same!
|
||||
else:
|
||||
try:
|
||||
self.emit('active-changed', (person.handle, ))
|
||||
except:
|
||||
|
Loading…
Reference in New Issue
Block a user