set_active triggers the 'activate' signal, which makes sense I suppose, but means we were changing profile to the profile we already were set to, which is a waste

This commit is contained in:
Chris Jones 2010-01-13 23:00:42 +00:00
parent 606ca3707b
commit f808a9edc9
1 changed files with 1 additions and 1 deletions

View File

@ -151,9 +151,9 @@ class TerminalPopupMenu(object):
for profile in profilelist:
item = gtk.RadioMenuItem(group, profile.capitalize())
item.connect('activate', terminal.set_profile, profile)
if profile == current:
item.set_active(True)
item.connect('activate', terminal.set_profile, profile)
submenu.append(item)
self.add_encoding_items(menu)