git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add .jpe extension
[enigma2.git]
/
lib
/
python
/
Screens
/
ChoiceBox.py
diff --git
a/lib/python/Screens/ChoiceBox.py
b/lib/python/Screens/ChoiceBox.py
index 37729887c744678514c0cb1cb5f2661bd8784993..b1d74ad54db88960ed29025e1834fb5aacbd56f3 100644
(file)
--- a/
lib/python/Screens/ChoiceBox.py
+++ b/
lib/python/Screens/ChoiceBox.py
@@
-74,7
+74,11
@@
class ChoiceBox(Screen):
# runs the current selected entry
def go(self):
# runs the current selected entry
def go(self):
- self.goEntry(self["list"].l.getCurrentSelection()[0])
+ cursel = self["list"].l.getCurrentSelection()
+ if cursel:
+ self.goEntry(cursel[0])
+ else:
+ self.cancel()
# runs a specific entry
def goEntry(self, entry):
# runs a specific entry
def goEntry(self, entry):