Make multi-tab live radios focus the first tab too

This commit is contained in:
Dan Smith 2011-05-24 16:14:13 -07:00
parent 3a97f605c0
commit 4aa14eea78

View file

@ -267,6 +267,7 @@ class ChirpMain(gtk.Window):
else:
devices = [radio]
first_tab = True
for device in devices:
eset = editorset.EditorSet(device, self, tempname)
eset.connect("want-close", self.do_close)
@ -274,7 +275,9 @@ class ChirpMain(gtk.Window):
eset.show()
tab = self.tabs.append_page(eset, eset.get_tab_label())
self.tabs.set_current_page(tab)
if first_tab:
self.tabs.set_current_page(tab)
first_tab = False
if isinstance(radio, chirp_common.LiveRadio):
reporting.report_model_usage(radio, "live", True)