From c0c32680cd127a4afc617751b70b9c8673ca8fe4 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sat, 27 Aug 2005 17:24:12 +0000 Subject: [PATCH] revert a commit --- src/roster_window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index c16e38486..d740a6061 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1682,16 +1682,18 @@ _('If "%s" accepts this request you will know his status.') %jid) '''When an iter is edited: if text has changed, rename the contact''' model = self.tree.get_model() - self.editing_path = None # if this is a last item in the group, row is invalid try: iter = model.get_iter_from_string(row) except: + self.editing_path = None return path = model.get_path(iter) # do not set new name if row order has changed if path != self.editing_path: + self.editing_path = None return + self.editing_path = None new_text = new_text.decode('utf-8') account = model[iter][4].decode('utf-8') jid = model[iter][3].decode('utf-8')