git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39b45b8
)
fix crash when try to open similar event list when no similar events are found
author
Andreas Monzner
<
[email protected]
>
Thu, 20 Apr 2006 13:57:24 +0000
(13:57 +0000)
committer
Andreas Monzner
<
[email protected]
>
Thu, 20 Apr 2006 13:57:24 +0000
(13:57 +0000)
lib/python/Components/EpgList.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/EpgList.py
b/lib/python/Components/EpgList.py
index 1ea0a1cf307b4317846e4ed145209944e2e60462..7169a26b7d2979e6ecc68f8bbab5ee52ddd6baea 100644
(file)
--- 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