remove empty branches of sessionless_ctrls (fixes single window mode)
This commit is contained in:
parent
e5b2e38792
commit
cb1c24ff7d
|
@ -692,6 +692,9 @@ class MessageWindow(object):
|
|||
|
||||
del self.sessionless_ctrls[acct][jid][idx]
|
||||
|
||||
if len(self.sessionless_ctrls[acct][jid]) == 0:
|
||||
del self.sessionless_ctrls[acct][jid]
|
||||
|
||||
if not self._controls.has_key(acct):
|
||||
self._controls[acct] = {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue