Don't overwrite existing groups

This commit is contained in:
Stephen Boddy 2012-10-22 14:25:37 +02:00
parent 55c3b7d59c
commit 038e495610
1 changed files with 12 additions and 9 deletions

View File

@ -234,6 +234,9 @@ class Titlebar(gtk.EventBox):
def create_group(self): def create_group(self):
"""Create a new group""" """Create a new group"""
if self.terminal.group:
self.groupentry.set_text(self.terminal.group)
else:
defaultgroups=set(['Alpha','Beta','Gamma','Delta','Epsilon','Zeta','Eta', defaultgroups=set(['Alpha','Beta','Gamma','Delta','Epsilon','Zeta','Eta',
'Theta','Iota','Kappa','Lambda','Mu','Nu','Xi', 'Theta','Iota','Kappa','Lambda','Mu','Nu','Xi',
'Omnicron','Pi','Rho','Sigma','Tau','Upsilon','Phi', 'Omnicron','Pi','Rho','Sigma','Tau','Upsilon','Phi',