From 4aa14eea78a418ea325aede994d256d52a813e57 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Tue, 24 May 2011 16:14:13 -0700 Subject: [PATCH] Make multi-tab live radios focus the first tab too --- chirpui/mainapp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chirpui/mainapp.py b/chirpui/mainapp.py index 39073dd4..b2899b12 100644 --- a/chirpui/mainapp.py +++ b/chirpui/mainapp.py @@ -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)