Fix list of groups in context menu to prevent duplicates

This commit is contained in:
Stephen Boddy 2009-01-10 07:34:50 +01:00
parent b356cfc9ee
commit a30755e670
1 changed files with 2 additions and 1 deletions

View File

@ -1171,7 +1171,8 @@ text/plain
def do_create_group (self, widget, window, entry):
name = entry.get_text ()
self.terminator.groupings.append (name)
if name not in self.terminator.groupings:
self.terminator.groupings.append (name)
self.set_group (None, name)
window.destroy ()