From c154af7e843861ae9e826f4d46c08799cfef5ff4 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Fri, 21 Sep 2007 20:30:29 +0000 Subject: small fixes for PIG --- lib/python/Components/GUISkin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/python/Components') 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): -- cgit v1.2.3