remove empty branches of sessionless_ctrls (fixes single window mode)

This commit is contained in:
Brendan Taylor 2008-06-03 23:54:14 +00:00
parent e5b2e38792
commit cb1c24ff7d
1 changed files with 3 additions and 0 deletions

View File

@ -692,6 +692,9 @@ class MessageWindow(object):
del self.sessionless_ctrls[acct][jid][idx] 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): if not self._controls.has_key(acct):
self._controls[acct] = {} self._controls[acct] = {}