# HG changeset patch # User Rudolph Gutzerhagen # Date 1612362387 18000 # Wed Feb 03 09:26:27 2021 -0500 # Node ID 70f1d48b7eef9810cdb9ce329b7d774390a80504 # Parent f328cfbea7fbf9742ceccf2608fd45f7c19e2e58 Sort models for settings selection dialog #8791 in clone.py class CloneSettingsDialog when constructing the dropdown lists for display, change the sort order to be based on models.MODEL, rather than the complex models.__name__ diff --git a/chirp/ui/clone.py b/chirp/ui/clone.py --- a/chirp/ui/clone.py +++ b/chirp/ui/clone.py @@ -101,7 +101,7 @@ added_models = [] model.get_model().clear() - for rclass in sorted(models, key=lambda c: c.__name__): + for rclass in sorted(models, key=lambda c: c.MODEL): if rclass.MODEL not in added_models: model.append_text(rclass.MODEL) added_models.append(rclass.MODEL)