From 685b3d399afe68e8af47e69086454329f7f4e618 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 1 Aug 2006 07:24:47 +0000 Subject: [PATCH] do not modify self._last_selected_contact while we are renaming a contact. Fixes #2198 --- src/roster_window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index dbe0e77dc..0f42629ef 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -3569,6 +3569,10 @@ _('If "%s" accepts this request you will know his or her status.') % jid) def _on_treeview_selection_changed(self, selection): model, list_of_paths = selection.get_selected_rows() + if len(list_of_paths) == 1 and model[list_of_paths[0]][C_EDITABLE]: + # We are editing this row, do not modify self._last_selected_contact + # Cause that cancel editing + return if len(self._last_selected_contact): # update unselected rows for (jid, account) in self._last_selected_contact: