From: Andreas Monzner Date: Mon, 8 Jan 2007 16:26:14 +0000 (+0000) Subject: fix following frequently bluescreen X-Git-Tag: 2.6.0~2489 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/ef273c7a1a88b97d6338a1549e91c22a20c690ac?ds=sidebyside fix following frequently bluescreen 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 &' --- diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 94f5c211..08bfaf35 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -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")