From 5d88dcbf115045e9a9724b5c5df86e68b52fa732 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 25 Apr 2005 22:02:26 +0000 Subject: [PATCH] print the subject only if the room is the active one --- src/gajim.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index 3c5f9c29b..74fd7b200 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -303,8 +303,9 @@ class Interface: if jid in self.windows[account]['gc']: self.windows[account]['gc'][jid].print_conversation('Error %s: %s' % \ (array[1], array[2]), jid, tim = array[4]) - self.windows[account]['gc'][jid].set_subject(jid, \ - self.windows[account]['gc'][jid].subjects[jid]) + if self.windows[account]['gc'][jid].get_active() == jid: + self.windows[account]['gc'][jid].set_subject(jid, \ + self.windows[account]['gc'][jid].subjects[jid]) return if jid.find('@') <= 0: jid = jid.replace('@', '')