diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2007-11-24 14:09:09 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2007-11-24 14:09:09 +0000 |
| commit | 2622fe6c295525637d23e65e54e5a506d728ff7d (patch) | |
| tree | 7efe9115254910779221fba930f635c006816adb /lib/python | |
| parent | 557b9ef9e84f546721e0c643165866853f2bed7c (diff) | |
| download | enigma2-2622fe6c295525637d23e65e54e5a506d728ff7d.tar.gz enigma2-2622fe6c295525637d23e65e54e5a506d728ff7d.zip | |
ignore ok button when menu is empty
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/Menu.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/Screens/Menu.py b/lib/python/Screens/Menu.py index 7ae50cd0..19b36045 100644 --- a/lib/python/Screens/Menu.py +++ b/lib/python/Screens/Menu.py @@ -74,7 +74,8 @@ class Menu(Screen): def okbuttonClick(self): print "okbuttonClick" selection = self["menu"].getCurrent() - selection[1]() + if selection is not None: + selection[1]() def execText(self, text): exec text |
