From 5145d0d3eb7fb8ea47eb8ca7bfae20322c40eabe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 12 Apr 2010 22:14:09 +0200 Subject: Redo change, when changing the search type --- portato/gui/windows/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'portato') diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py index cad0015..bdcb3c6 100644 --- a/portato/gui/windows/main.py +++ b/portato/gui/windows/main.py @@ -1620,8 +1620,8 @@ class MainWindow (Window): if txt or self.db.restrict: self.db.restrict = txt - self.refresh_stores() - self.catList.get_selection().select_path("0") # XXX make this smarter + self.refresh_stores() + self.catList.get_selection().select_path("0") # XXX make this smarter return False # not again ;) @@ -1632,6 +1632,7 @@ class MainWindow (Window): active = self.typeCombo.get_active() self.db.type = model[active][0] + self.cb_search_changed() def cb_delete_search_clicked (self, *args): self.searchEntry.set_text("") -- cgit v1.2.3