aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/HelpMenuList.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/HelpMenuList.py')
-rw-r--r--lib/python/Components/HelpMenuList.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Components/HelpMenuList.py b/lib/python/Components/HelpMenuList.py
index 07bbdd2a..3d36e958 100644
--- a/lib/python/Components/HelpMenuList.py
+++ b/lib/python/Components/HelpMenuList.py
@@ -63,9 +63,12 @@ class HelpMenuList(GUIComponent):
def postWidgetCreate(self, instance):
instance.setContent(self.l)
-
instance.selectionChanged.get().append(self.selectionChanged)
+ def preWidgetRemove(self, instance):
+ instance.setContent(None)
+ instance.selectionChanged.get().remove(self.selectionChanged)
+
def selectionChanged(self):
for x in self.onSelChanged:
x()