From 6bce9168f04e5cd2fa7d063cde615aa3a5de088e Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 22 Mar 2012 19:35:14 +0100 Subject: [PATCH] [Rigo] call AppTreeView.clear_model() rather than model.clear() This lets the view to reset its state accordingly to an empty model. --- rigo/rigo/ui/gtk3/controllers/applications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rigo/rigo/ui/gtk3/controllers/applications.py b/rigo/rigo/ui/gtk3/controllers/applications.py index ac84629b2..c9b11d2ff 100644 --- a/rigo/rigo/ui/gtk3/controllers/applications.py +++ b/rigo/rigo/ui/gtk3/controllers/applications.py @@ -405,7 +405,7 @@ class ApplicationsViewController(GObject.Object): self._view.show() def clear(self): - self._store.clear() + self._view.clear_model() ApplicationMetadata.discard() if const_debug_enabled(): const_debug_write(__name__, "AVC: emitting view-cleared") @@ -425,7 +425,7 @@ class ApplicationsViewController(GObject.Object): self.emit("view-filled") def set_many(self, opaque_list, _from_search=None): - self._store.clear() + self._view.clear_model() ApplicationMetadata.discard() self.append_many(opaque_list) if _from_search: