From: Andreas Monzner Date: Thu, 25 Oct 2007 09:33:31 +0000 (+0000) Subject: ignore applySkin when skinAttributes is None X-Git-Tag: 2.6.0~1798 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/8f80c7c5867d6eddde43a612b25e67b6435e44b4 ignore applySkin when skinAttributes is None --- diff --git a/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py b/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py index 9a8b4935..9040539a 100644 --- a/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py +++ b/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py @@ -49,19 +49,20 @@ class EPGList(HTMLComponent, GUIComponent): self.backColorSelected = 0x808080 def applySkin(self, desktop): - attribs = [ ] - for (attrib, value) in self.skinAttributes: - if attrib == "EntryForegroundColor": - self.foreColor = parseColor(value).argb() - elif attrib == "EntryBorderColor": - self.borderColor = parseColor(value).argb() - elif attrib == "EntryBackgroundColor": - self.backColor = parseColor(value).argb() - elif attrib == "EntryBackgroundColorSelected": - self.backColorSelected = parseColor(value).argb() - else: - attribs.append((attrib,value)) - self.skinAttributes = attribs + if self.skinAttributes is not None: + attribs = [ ] + for (attrib, value) in self.skinAttributes: + if attrib == "EntryForegroundColor": + self.foreColor = parseColor(value).argb() + elif attrib == "EntryBorderColor": + self.borderColor = parseColor(value).argb() + elif attrib == "EntryBackgroundColor": + self.backColor = parseColor(value).argb() + elif attrib == "EntryBackgroundColorSelected": + self.backColorSelected = parseColor(value).argb() + else: + attribs.append((attrib,value)) + self.skinAttributes = attribs return GUIComponent.applySkin(self, desktop) def isSelectable(self, service, sname, event_list):