don't show popup menu for group that can't be renamed

This commit is contained in:
Yann Leboulanger 2006-03-30 21:39:32 +00:00
parent 42fcc71bc0
commit fe98c5fc55
1 changed files with 3 additions and 0 deletions

View File

@ -1309,6 +1309,9 @@ class RosterWindow:
'''Make group's popup menu''' '''Make group's popup menu'''
model = self.tree.get_model() model = self.tree.get_model()
path = model.get_path(iter) path = model.get_path(iter)
group = model[iter][C_JID]
if group in helpers.special_groups + (_('General'),):
return
menu = gtk.Menu() menu = gtk.Menu()