diff --git a/src/gajim.py b/src/gajim.py index fdcd592ff..e89d91412 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -229,7 +229,8 @@ class Interface: gajim.allow_notifications[account] = False # we are disconnected from all gc for room_jid in gajim.gc_connected[account]: - self.windows[account]['gc'][room_jid].got_disconnected(room_jid) + if self.windows[account]['gc'].has_key(room_jid): + self.windows[account]['gc'][room_jid].got_disconnected(room_jid) self.roster.on_status_changed(account, status) if self.remote and self.remote.is_enabled(): self.remote.raise_signal('AccountPresence', (status, account))