we can have popup notification even if we don't have sound enabled when a contact disconnect

This commit is contained in:
Yann Leboulanger 2005-05-11 15:21:13 +00:00
parent c22e2c5f7a
commit a472b4a321
1 changed files with 4 additions and 3 deletions

View File

@ -249,9 +249,10 @@ class Interface:
'Contact Online', jid, account)
self.roster.popup_notification_windows.append(instance)
elif old_show > 1 and new_show < 2 and gajim.config.get_per( \
'soundevents', 'contact_disconnected', 'enabled'):
self.play_sound('contact_disconnected')
elif old_show > 1 and new_show < 2:
if gajim.config.get_per('soundevents', 'contact_disconnected',
'enabled'):
self.play_sound('contact_disconnected')
if not self.windows[account]['chats'].has_key(jid) and \
not self.queues[account].has_key(jid) and \
gajim.config.get('notify_on_offline'):