summaryrefslogtreecommitdiff
path: root/geneticone/gui
diff options
context:
space:
mode:
Diffstat (limited to 'geneticone/gui')
-rw-r--r--geneticone/gui/windows.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/geneticone/gui/windows.py b/geneticone/gui/windows.py
index 031306b..f07bfa4 100644
--- a/geneticone/gui/windows.py
+++ b/geneticone/gui/windows.py
@@ -363,10 +363,12 @@ class PackageWindow (AbstractDialog):
"""Callback for the changed ComboBox.
It then rebuilds the useList and the checkboxes."""
- store = self.useList.get_model()
- store.clear()
- self.fill_use_list(store)
+ # remove old useList
+ self.useListScroll.remove(self.useList)
+ # build new
+ self.useList = self.build_use_list()
+ self.useListScroll.add(self.useList)
pkg = self.actual_package()
if pkg.is_missing_keyword():