aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/GUISkin.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/GUISkin.py')
-rw-r--r--lib/python/Components/GUISkin.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/python/Components/GUISkin.py b/lib/python/Components/GUISkin.py
index 39499c77..0cf4d027 100644
--- a/lib/python/Components/GUISkin.py
+++ b/lib/python/Components/GUISkin.py
@@ -35,9 +35,14 @@ class GUISkin:
f()
def deleteGUIScreen(self):
+ seenFakeSource = False
for (name, val) in self.items():
+ if name == "fake":
+ seenFakeSource = True
if isinstance(val, GUIComponent):
val.GUIdelete()
+ if seenFakeSource:
+ del self["fake"]
def close(self):
self.deleteGUIScreen()