diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-15 13:42:36 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-15 13:42:36 +0100 |
commit | 7189433c0a55cee16ec54e8af767a4f6b1d614e9 (patch) | |
tree | 7f2427e694a73080c5033fe58e4ab8d1d1e156b7 /common/query.h | |
parent | fb0df0d8008ef05cfa94936e19c22dec0faaa8e4 (diff) | |
download | sink-7189433c0a55cee16ec54e8af767a4f6b1d614e9.tar.gz sink-7189433c0a55cee16ec54e8af767a4f6b1d614e9.zip |
Ensure we correctly sort by date.
Diffstat (limited to 'common/query.h')
-rw-r--r-- | common/query.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/common/query.h b/common/query.h index bb826aa..29cff78 100644 --- a/common/query.h +++ b/common/query.h | |||
@@ -103,6 +103,7 @@ public: | |||
103 | } | 103 | } |
104 | 104 | ||
105 | Query(Flags flags = Flags()) | 105 | Query(Flags flags = Flags()) |
106 | : limit(0) | ||
106 | {} | 107 | {} |
107 | 108 | ||
108 | Query& operator+=(const Query& rhs) | 109 | Query& operator+=(const Query& rhs) |
@@ -115,8 +116,6 @@ public: | |||
115 | requestedProperties += rhs.requestedProperties; | 116 | requestedProperties += rhs.requestedProperties; |
116 | parentProperty = rhs.parentProperty; | 117 | parentProperty = rhs.parentProperty; |
117 | liveQuery = rhs.liveQuery; | 118 | liveQuery = rhs.liveQuery; |
118 | syncOnDemand = rhs.syncOnDemand; | ||
119 | processAll = rhs.processAll; | ||
120 | return *this; | 119 | return *this; |
121 | } | 120 | } |
122 | 121 | ||
@@ -133,8 +132,7 @@ public: | |||
133 | QByteArray parentProperty; | 132 | QByteArray parentProperty; |
134 | QByteArray sortProperty; | 133 | QByteArray sortProperty; |
135 | bool liveQuery; | 134 | bool liveQuery; |
136 | bool syncOnDemand; | 135 | int limit; |
137 | bool processAll; | ||
138 | }; | 136 | }; |
139 | 137 | ||
140 | } | 138 | } |