remove unneeded print

This commit is contained in:
Yann Leboulanger 2005-07-21 13:28:07 +00:00
parent 128800be28
commit fa69961f57
1 changed files with 3 additions and 4 deletions

View File

@ -694,14 +694,13 @@ class RosterWindow:
def on_rename(self, widget, iter, path): def on_rename(self, widget, iter, path):
model = self.tree.get_model() model = self.tree.get_model()
#Remove resource indicator (Name (2))
print model[iter]
row_type = model[iter][2] row_type = model[iter][2]
string = model[iter][3] # the string (name) we show in the row jid = model[iter][3]
account = model[iter][4] account = model[iter][4]
if row_type == 'contact': if row_type == 'contact':
# it's jid # it's jid
contacts = gajim.contacts[account][string] #Remove resource indicator (Name (2))
contacts = gajim.contacts[account][jid]
name = contacts[0].name name = contacts[0].name
model[iter][1] = name model[iter][1] = name