[gnome-documents] model: consolidate some code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] model: consolidate some code
- Date: Tue, 23 Aug 2011 21:55:21 +0000 (UTC)
commit 39db3632c411f4dabf9ae224efa5aa0d12ab2607
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Aug 23 17:32:15 2011 -0400
model: consolidate some code
src/trackerModel.js | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/trackerModel.js b/src/trackerModel.js
index f61e183..930a5e6 100644
--- a/src/trackerModel.js
+++ b/src/trackerModel.js
@@ -211,8 +211,7 @@ TrackerModel.prototype = {
},
_onSettingsChanged: function() {
- this.model.clear();
- this._performCurrentQuery();
+ this._refresh();
},
_addRowFromCursor: function(cursor) {
@@ -297,20 +296,16 @@ TrackerModel.prototype = {
},
setFilter: function(filter) {
- this.model.clear();
-
this.offset = 0;
this._filter = filter;
- this._performCurrentQuery();
+ this._refresh();
},
setAccountFilter: function(id) {
if (id == 'all' || id == 'local') {
this._resourceUrn = id;
-
- this.model.clear();
- this._performCurrentQuery();
+ this._refresh();
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]