# HG changeset patch # User SASANO Takayoshi uaa@mx5.nisiq.net # Date 1496352103 -32400 # Fri Jun 02 06:21:43 2017 +0900 # Node ID d4222df0000cdde3311e54df02edf80858720316 # Parent a959b8baac1086145e1a211a6e4572dd3e975104 fix for bug #4863 Delete function cannot work when translating msgid "Loc", this is caused by "Loc" (instead of _("Loc")). And, non_editable flag in make_editor() has same problem. Both fixed.
diff -r a959b8baac10 -r d4222df0000c chirp/ui/memedit.py --- a/chirp/ui/memedit.py Thu Jun 01 12:24:58 2017 -0700 +++ b/chirp/ui/memedit.py Fri Jun 02 06:21:43 2017 +0900 @@ -496,7 +496,7 @@ to_remove = [] for path in paths: iter = self.store.get_iter(path) - cur_pos, = self.store.get(iter, self.col("Loc")) + cur_pos, = self.store.get(iter, self.col(_("Loc"))) to_remove.append(cur_pos) self.store.set(iter, self.col("_filled"), False) job = common.RadioJob(None, "erase_memory", cur_pos) @@ -972,7 +972,7 @@ LOG.error(e) col_order = default_col_order
- non_editable = ["Loc"] + non_editable = [_("Loc")]
unsupported_cols = self.get_unsupported_columns() visible_cols = self.get_columns_visible()