remove debug
[enigma2.git] / lib / python / Components / GUISkin.py
index 39499c77ef16f9feac914f7a7f159fce889c990b..b7cfb430bf7eff2d8f14321beb23a54b84c66ca4 100644 (file)
@@ -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__
@@ -35,9 +36,14 @@ class GUISkin:
                                f()
 
        def deleteGUIScreen(self):
+               seenFakeSource = False
                for (name, val) in self.items():
+                       if name == "fake" and isinstance(val, Source):
+                               seenFakeSource = True
                        if isinstance(val, GUIComponent):
                                val.GUIdelete()
+               if seenFakeSource:
+                       del self["fake"]
 
        def close(self):
                self.deleteGUIScreen()