[chirp_devel] [PATCH] Don't hide Tone column when TSQL is selected on non-has_ctone radios

Dan Smith
Mon May 7 12:38:55 PDT 2012


# HG changeset patch
# User Dan Smith <dsmith at danplanet.com>
# Date 1336419532 25200
# Node ID d2e465e607abee53fa591e2163fe75b714bcdc59
# Parent  77c009de061b62be9397f20c18e5c1a398c21eb4
Don't hide Tone column when TSQL is selected on non-has_ctone radios
#00

diff -r 77c009de061b -r d2e465e607ab chirpui/memedit.py
--- a/chirpui/memedit.py	Sun May 06 16:35:36 2012 -0700
+++ b/chirpui/memedit.py	Mon May 07 12:38:52 2012 -0700
@@ -208,8 +208,10 @@
                      self.col(_("DTCS Code")),
                      self.col(_("DTCS Pol"))]
         elif tmode == "TSQL":
-            hide += [self.col(_("Tone")),
-                     self.col(_("DTCS Code")),
+            if self._features.has_ctone:
+                hide += [self.col(_("Tone"))]
+
+            hide += [self.col(_("DTCS Code")),
                      self.col(_("DTCS Pol"))]
         elif tmode == "DTCS":
             hide += [self.col(_("Tone")), self.col(_("ToneSql"))]



More information about the chirp_devel mailing list