Unread message fix when quitting gajim, see #1516

This commit is contained in:
Travis Shirk 2006-02-08 04:55:06 +00:00
parent 6d3696e83c
commit 2da7a542f8
1 changed files with 6 additions and 1 deletions

View File

@ -2072,7 +2072,12 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
for win in gajim.interface.msg_win_mgr.windows():
unrd = 0
for ctrl in win.controls():
unrd += ctrl.nb_unread
if ctrl.type_id == message_control.TYPE_GC:
if gajim.config.get('notify_on_all_muc_messages'):
unrd += ctrl.nb_unread
else:
if ctrl.attention_flag:
unrd += 1
if unrd:
unread = True
break