fix following frequently bluescreen
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 8 Jan 2007 16:26:14 +0000 (16:26 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 8 Jan 2007 16:26:14 +0000 (16:26 +0000)
  File "/enigma2-1.0-r0/enigma2/lib/python/Screens/InfoBarGenerics.py", line
1917, in __tuneFailed
    Notifications.AddPopup(text = error, type = MessageBox.TYPE_ERROR,
timeout = 5, id = "ZapError")
  File "/enigma2-1.0-r0/enigma2/lib/python/Tools/Notifications.py", line 45,
in AddPopup
    AddNotificationWithID(id, MessageBox, text = text, type = type, timeout
= timeout, close_on_any_key = True)
....
....
....
TypeError: in method 'eLabel_setText', argument 2 of type 'std::string
const &'

lib/python/Screens/InfoBarGenerics.py

index 94f5c21..08bfaf3 100644 (file)
@@ -1911,7 +1911,7 @@ class InfoBarServiceErrorPopupSupport:
                if error not in errors:
                        error = None
 
-               error = error is not None and errors[error]
+               error = error and errors[error]
 
                if error is not None:
                        Notifications.AddPopup(text = error, type = MessageBox.TYPE_ERROR, timeout = 5, id = "ZapError")