now use model[iter], instead of model.get_iter
This commit is contained in:
parent
d65beee037
commit
0740da3341
1 changed files with 6 additions and 6 deletions
|
@ -1643,9 +1643,9 @@ _('If "%s" accepts this request you will know his status.') %jid).get_response()
|
||||||
path = self.tree.get_cursor()[0]
|
path = self.tree.get_cursor()[0]
|
||||||
model = self.tree.get_model()
|
model = self.tree.get_model()
|
||||||
iter = model.get_iter(path)
|
iter = model.get_iter(path)
|
||||||
account = model.get_value(iter, 4)
|
account = model[iter][4]
|
||||||
jid = model.get_value(iter, 3)
|
jid = model[iter][3]
|
||||||
type = model.get_value(iter, 2)
|
type = model[iter][2]
|
||||||
# restore the number of resources string at the end of contact name
|
# restore the number of resources string at the end of contact name
|
||||||
if type == 'contact' and len(gajim.contacts[account][jid]) > 1:
|
if type == 'contact' and len(gajim.contacts[account][jid]) > 1:
|
||||||
self.draw_contact(jid, account)
|
self.draw_contact(jid, account)
|
||||||
|
@ -1656,9 +1656,9 @@ _('If "%s" accepts this request you will know his status.') %jid).get_response()
|
||||||
model = self.tree.get_model()
|
model = self.tree.get_model()
|
||||||
iter = model.get_iter_from_string(row)
|
iter = model.get_iter_from_string(row)
|
||||||
path = model.get_path(iter)
|
path = model.get_path(iter)
|
||||||
account = model.get_value(iter, 4)
|
account = model[iter][4]
|
||||||
jid = model.get_value(iter, 3)
|
jid = model[iter][3]
|
||||||
type = model.get_value(iter, 2)
|
type = model[iter][2]
|
||||||
if type == 'contact':
|
if type == 'contact':
|
||||||
old_text = gajim.contacts[account][jid][0].name
|
old_text = gajim.contacts[account][jid][0].name
|
||||||
if old_text != new_text:
|
if old_text != new_text:
|
||||||
|
|
Loading…
Add table
Reference in a new issue