X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e628d5490dab543bfa2f109d28f504c49f89a2d7..9a8c3eab7a0823b5dfc6111f07a04cf05d00b57b:/lib/python/Screens/ChoiceBox.py diff --git a/lib/python/Screens/ChoiceBox.py b/lib/python/Screens/ChoiceBox.py index 37729887..b1d74ad5 100644 --- 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): - 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):