aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/python/Components/GUISkin.py4
-rw-r--r--skin.py1
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Components/GUISkin.py b/lib/python/Components/GUISkin.py
index 0cf4d027..9f65025d 100644
--- a/lib/python/Components/GUISkin.py
+++ b/lib/python/Components/GUISkin.py
@@ -1,6 +1,7 @@
from GUIComponent import GUIComponent
from skin import applyAllAttributes
from Tools.CList import CList
+from Sources.Source import Source
class GUISkin:
__module__ = __name__
@@ -37,11 +38,12 @@ class GUISkin:
def deleteGUIScreen(self):
seenFakeSource = False
for (name, val) in self.items():
- if name == "fake":
+ if name == "fake" and isinstance(val, Source):
seenFakeSource = True
if isinstance(val, GUIComponent):
val.GUIdelete()
if seenFakeSource:
+ print "DEL FAKE SOURCE"
del self["fake"]
def close(self):
diff --git a/skin.py b/skin.py
index c34757c8..d40c593b 100644
--- a/skin.py
+++ b/skin.py
@@ -6,6 +6,7 @@ from enigma import eSize, ePoint, gFont, eWindow, eLabel, ePixmap, eWindowStyleM
from Components.config import ConfigSubsection, ConfigText, config
from Components.Converter.Converter import Converter
+from Components.Sources.Source import Source
from Tools.Directories import resolveFilename, SCOPE_SKIN, SCOPE_SKIN_IMAGE, SCOPE_FONTS
from Tools.Import import my_import