[gnome-documents/gnome-3-28] trackerController: Don't submit queries until started
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-28] trackerController: Don't submit queries until started
- Date: Wed, 6 Jun 2018 18:54:13 +0000 (UTC)
commit 83d884324c3a2576716ab7fab79cd654c2ac3b28
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Dec 12 16:35:22 2017 +0100
trackerController: Don't submit queries until started
This prevents a premature query when the TrackerController is
instantiated.
https://bugzilla.gnome.org/show_bug.cgi?id=791518
src/trackerController.js | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/trackerController.js b/src/trackerController.js
index 05b7e89f..55f1343f 100644
--- a/src/trackerController.js
+++ b/src/trackerController.js
@@ -283,6 +283,10 @@ const TrackerController = new Lang.Class({
return;
this.sortBy = sortBy;
+
+ if (!this._isStarted)
+ return;
+
this._refreshInternal(RefreshFlags.RESET_OFFSET);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]