aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/MessageBox.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2009-11-16 19:03:34 +0100
committerthedoc <thedoc@atom.(none)>2009-12-23 11:38:01 +0100
commit6494baea016edbaab77c1d07521cf73205857085 (patch)
tree7224d50d0b6a8d0f66d60ae812904e2ab221c22b /lib/python/Screens/MessageBox.py
parentab069c3dbe84a06e5cfa4c1f5c196690d53fa9a2 (diff)
downloadenigma2-6494baea016edbaab77c1d07521cf73205857085.tar.gz
enigma2-6494baea016edbaab77c1d07521cf73205857085.zip
fixes bug #291
don't crash if auto scart switching is enabled and the scart voltage is high on enigma2 startup not the best solution since the whole scart switching stuff is broken by design, but this fix prevents the crash
Diffstat (limited to 'lib/python/Screens/MessageBox.py')
-rw-r--r--lib/python/Screens/MessageBox.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/Screens/MessageBox.py b/lib/python/Screens/MessageBox.py
index 86bf07d3..f3538b7b 100644
--- a/lib/python/Screens/MessageBox.py
+++ b/lib/python/Screens/MessageBox.py
@@ -12,9 +12,11 @@ class MessageBox(Screen):
TYPE_WARNING = 2
TYPE_ERROR = 3
- def __init__(self, session, text, type = TYPE_YESNO, timeout = -1, close_on_any_key = False, default = True, enable_input = True):
+ def __init__(self, session, text, type = TYPE_YESNO, timeout = -1, close_on_any_key = False, default = True, enable_input = True, msgBoxID = None):
self.type = type
Screen.__init__(self, session)
+
+ self.msgBoxID = msgBoxID
self["text"] = Label(text)
self["Text"] = StaticText(text)