diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-04-20 13:57:24 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-04-20 13:57:24 +0000 |
| commit | ca2494373c0556bc694fa18f484055e3977e33ed (patch) | |
| tree | 5f71d758180c51b86548251cad3f37d974e87bd2 /lib/python/Components | |
| parent | 39b45b84bf946f8f4f9030e2f4b09d56208e7079 (diff) | |
| download | enigma2-ca2494373c0556bc694fa18f484055e3977e33ed.tar.gz enigma2-ca2494373c0556bc694fa18f484055e3977e33ed.zip | |
fix crash when try to open similar event list when no similar events are found
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/EpgList.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/Components/EpgList.py b/lib/python/Components/EpgList.py index 1ea0a1cf..7169a26b 100644 --- a/lib/python/Components/EpgList.py +++ b/lib/python/Components/EpgList.py @@ -289,7 +289,8 @@ class EPGList(HTMLComponent, GUIComponent): if event_id is None: return l = self.epgcache.search(('RIBN', 1024, eEPGCache.SIMILAR_BROADCASTINGS_SEARCH, refstr, event_id)) - l.sort(self.sort_func) + if l and len(l): + l.sort(self.sort_func) self.l.setList(l) self.selectionChanged() print time() - t |
