do not rename a contact if we are already renaming it. Fixes #2276

This commit is contained in:
Yann Leboulanger 2006-08-28 20:03:38 +00:00
parent fd719bcbc6
commit 24f1b008a5
1 changed files with 4 additions and 2 deletions

View File

@ -1914,8 +1914,10 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
path = list_of_paths[0]
type = model[path][C_TYPE]
if type in ('contact', 'group', 'agent'):
iter = model.get_iter(path)
self.on_rename(widget, iter, path)
if not model[path][C_EDITABLE]:
# we are NOT already renaming it
iter = model.get_iter(path)
self.on_rename(widget, iter, path)
elif event.keyval == gtk.keysyms.Delete:
treeselection = self.tree.get_selection()