[chirp_devel] [PATCH] [vx-2] fix exception when picking my menu function #833
Jens Jensen
Sat Jan 11 08:14:04 PST 2014
# HG changeset patch
# User Jens Jensen <kd4tjx at yahoo.com>
# Date 1389456818 21600
# Sat Jan 11 10:13:38 2014 -0600
# Node ID bf75e45e1dfae23365e351a2ded22d1a21b59cb5
# Parent 5046fda69bcbafff0f83355b3fbb44f828355e17
[vx-2] fix exception when picking my menu function #833
I was incorrectly setting the mymenukey option. This should fix.
diff -r 5046fda69bcb -r bf75e45e1dfa chirp/vx2.py
--- a/chirp/vx2.py Thu Jan 09 21:09:19 2014 -0600
+++ b/chirp/vx2.py Sat Jan 11 10:13:38 2014 -0600
@@ -686,7 +686,11 @@
element.value -= 1
_settings = self._memobj
if setting == "mymenu":
- element.value += 9
+ opts = element.value.get_options()
+ optsidx = opts.index(element.value.get_value())
+ idx = optsidx + 9
+ setattr(_settings, "mymenu", idx)
+ continue
oldval = getattr(_settings, setting)
newval = element.value
if setting == "cwid":
More information about the chirp_devel
mailing list