[Geobert] Fix for #1430

This commit is contained in:
Travis Shirk 2006-01-22 22:20:00 +00:00
parent ab50f69fa0
commit b0f4dd6d8e
1 changed files with 4 additions and 3 deletions

View File

@ -371,14 +371,15 @@ class ChatControlBase(MessageControl):
if kind == 'incoming_queue': if kind == 'incoming_queue':
gajim.last_message_time[self.account][jid] = time.time() gajim.last_message_time[self.account][jid] = time.time()
urgent = True urgent = True
if (not self.parent_win.get_active_jid() or\ if (not self.parent_win.get_active_jid() or \
jid != self.parent_win.get_active_jid() or \ jid != self.parent_win.get_active_jid() or \
not self.parent_win.is_active() or not end) and\ not self.parent_win.is_active() or not end) and \
kind in ('incoming', 'incoming_queue'): kind in ('incoming', 'incoming_queue'):
self.nb_unread += 1 self.nb_unread += 1
if gajim.interface.systray_enabled and self.notify_on_new_messages(): if gajim.interface.systray_enabled and self.notify_on_new_messages():
gajim.interface.systray.add_jid(jid, self.account, self.type_id) gajim.interface.systray.add_jid(jid, self.account, self.type_id)
self.parent_win.redraw_tab(self.contact) self.parent_win.redraw_tab(self.contact)
if not self.parent_win.is_active():
self.parent_win.show_title(urgent) self.parent_win.show_title(urgent)
def toggle_emoticons(self): def toggle_emoticons(self):