From 5792e54b234ec3ffaf0c16203fc87c30a08721d1 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 22 Jul 2005 14:57:59 +0000 Subject: [PATCH] when we cancel editing, editable becomes False --- src/roster_window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 9e8037d22..39731bd18 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1638,8 +1638,6 @@ _('If "%s" accepts this request you will know his status.') %jid).get_response() def on_editing_canceled (self, cell): '''editing has been canceled''' - #FIXME: get iter - #model.set_value(iter, 5, False) path = self.tree.get_cursor()[0] model = self.tree.get_model() iter = model.get_iter(path) @@ -1649,6 +1647,8 @@ _('If "%s" accepts this request you will know his status.') %jid).get_response() # restore the number of resources string at the end of contact name if type == 'contact' and len(gajim.contacts[account][jid]) > 1: self.draw_contact(jid, account) + # reset editing to False + model[iter][5] = False def on_cell_edited(self, cell, row, new_text): '''When an iter is edited: