From 5313a6b588097e28d25f775c0d3b6e3731a1d4e2 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 28 Jun 2005 20:57:03 +0000 Subject: [PATCH] bugfix: get the show where it now is --- src/gajim.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index 4866fb527..2cde54d06 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -333,10 +333,7 @@ class Interface: fjid = jid + '/' + nick if not self.windows[account]['chats'].has_key(fjid): gc = self.windows[account]['gc'][jid] - tv = gc.list_treeview[jid] - model = tv.get_model() - iter = gc.get_user_iter(jid, nick) - show = model.get_value(iter, 3) + show = gc.contacts[nick].show() u = Contact(jid = fjid, name = nick, groups = ['none'], show = show, ask = 'none') self.roster.new_chat(u, account)