From: Stefan Pluecken Date: Sat, 7 Nov 2009 12:51:48 +0000 (+0100) Subject: fixes bug #258 (again) X-Git-Tag: 2.7.0~55^2~1 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/835d4ae513afbbb62c7739070ef3c23eade22e62 fixes bug #258 (again) sorting of satlist moved to another, not so destructive state --- diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py index 47325327..1dff777a 100644 --- a/lib/python/Components/NimManager.py +++ b/lib/python/Components/NimManager.py @@ -565,9 +565,10 @@ class NimManager: if self.hasNimType("DVB-S"): print "Reading satellites.xml" db.readSatellites(self.satList, self.satellites, self.transponders) -# print "SATLIST", self.satList -# print "SATS", self.satellites -# print "TRANSPONDERS", self.transponders + self.satList.sort(key = lambda x: x[0]) # sort by orbpos + #print "SATLIST", self.satList + #print "SATS", self.satellites + #print "TRANSPONDERS", self.transponders if self.hasNimType("DVB-C"): print "Reading cables.xml" diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index cf2c5e29..baa6c35b 100755 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -1148,7 +1148,6 @@ class ConfigSatlist(ConfigSelection): def __init__(self, list, default = None): if default is not None: default = str(default) - list.sort(key = lambda x: int(x[0])) self._satList = list choices = [(str(orbpos), desc) for (orbpos, desc, flags) in list]