summaryrefslogtreecommitdiff
path: root/portato/gui
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-02-28 23:50:38 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-02-28 23:50:38 +0100
commit7c1842b22c68d7e0978859ea173a5cf719cbb40b (patch)
treeaf44cd8465eb2c8fddb2db0b18f8657d8f5b5a76 /portato/gui
parent050ed7cd995d5f5b2714d2c82c054cad4d8d357c (diff)
downloadportato-7c1842b22c68d7e0978859ea173a5cf719cbb40b.tar.gz
portato-7c1842b22c68d7e0978859ea173a5cf719cbb40b.tar.bz2
portato-7c1842b22c68d7e0978859ea173a5cf719cbb40b.zip
use refresh_stores
Diffstat (limited to '')
-rw-r--r--portato/gui/gtk/windows.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py
index e06a7b4..c7dc79b 100644
--- a/portato/gui/gtk/windows.py
+++ b/portato/gui/gtk/windows.py
@@ -1667,17 +1667,7 @@ class MainWindow (Window):
if txt or self.db.restrict:
self.db.restrict = txt
- store = self.catList.get_model()
- store.clear()
- self.fill_cat_store(store)
-
- store = self.pkgList.get_model()
- store.clear()
- try:
- self.fill_pkg_store(store, self.selCatName)
- except AttributeError: # no selCatName -> so no category selected --> ignore
- debug("No category selected --> should be no harm.")
-
+ self.refresh_stores()
return True
def cb_preferences_clicked (self, *args):