[gnome-documents] window: don't rebuild the model when exiting preview



commit a08ed00e20f6db8b5767ea3d235b6430b578ead9
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Aug 24 16:15:07 2011 -0400

    window: don't rebuild the model when exiting preview

 src/mainWindow.js   |    1 -
 src/trackerModel.js |    6 ++----
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index b627d94..320dc49 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -156,7 +156,6 @@ MainWindow.prototype = {
 
         this._sidebar.widget.show();
         this._toolbar.setOverview();
-        this._model.populateForOverview();
     },
 
     _onDeleteEvent: function() {
diff --git a/src/trackerModel.js b/src/trackerModel.js
index 8117886..c9c7f80 100644
--- a/src/trackerModel.js
+++ b/src/trackerModel.js
@@ -214,6 +214,8 @@ TrackerModel.prototype = {
         this._filterController = Global.filterController;
         this._filterController.connect('filter-changed',
                                        Lang.bind(this, this._onFilterChanged));
+
+        this._refresh();
     },
 
     _refreshMinerNow: function() {
@@ -307,10 +309,6 @@ TrackerModel.prototype = {
         this._performCurrentQuery();
     },
 
-    populateForOverview: function() {
-        this._refresh();
-    },
-
     _onFilterChanged: function() {
         this._offsetController.resetOffset();
         this._refresh();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]