do not modify self._last_selected_contact while we are renaming a contact. Fixes #2198

This commit is contained in:
Yann Leboulanger 2006-08-01 07:24:47 +00:00
parent c09f00aa7f
commit 685b3d399a
1 changed files with 4 additions and 0 deletions

View File

@ -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: