[chirp_devel] [PATCH] [memory editor] Don't touch mem.name when set as immutable

Marco Filippi IZ3GME
Mon Aug 11 07:40:58 PDT 2014


# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1407767860 -7200
#      lun ago 11 16:37:40 2014 +0200
# Node ID 6e4a90068f7c72e5757e60109377ddd2fec18608
# Parent  424916a7f71731c9ec70c25d7a378ec2373c488d
[memory editor] Don't touch mem.name when set as immutable

Some memories like special ones have mem.name set as immutable, on those we
cannot set mem.name in any way.
This was making memory editor unusable an all those memories.

Fix #1827

diff --git a/chirpui/memedit.py b/chirpui/memedit.py
--- a/chirpui/memedit.py
+++ b/chirpui/memedit.py
@@ -745,7 +745,8 @@
             if len(locations) > 1:
                 self._apply_multiple(memory, dlg.get_fields(), locations)
             else:
-                mem.name = self.rthread.radio.filter_name(mem.name)
+                if not "name" in mem.immutable:
+                    mem.name = self.rthread.radio.filter_name(mem.name)
                 job = common.RadioJob(self._set_memory_cb, "set_memory", mem)
                 job.set_desc(_("Writing memory {number}").format(
                         number=mem.number))



More information about the chirp_devel mailing list