diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-03 20:24:09 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-03 20:24:26 +0200 |
commit | e06e1dad4a4570e5c1181d05ab6ed7a5d74c6c91 (patch) | |
tree | ef606d36ee693eff087292a1950fe122a7376f19 /framework/domain/maillistmodel.cpp | |
parent | 21f7851f044cd8b6e38c821ce12d7e1b291cae27 (diff) | |
download | kube-e06e1dad4a4570e5c1181d05ab6ed7a5d74c6c91.tar.gz kube-e06e1dad4a4570e5c1181d05ab6ed7a5d74c6c91.zip |
A save-as-draft action & action results
This patch introduces tracking of actions, so they can be tested.
It also provides a save-as-draft action, that looks for the draft
folder, and stores the mail accordingly.
Diffstat (limited to 'framework/domain/maillistmodel.cpp')
-rw-r--r-- | framework/domain/maillistmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/domain/maillistmodel.cpp b/framework/domain/maillistmodel.cpp index 7cbc5587..2df3ecbc 100644 --- a/framework/domain/maillistmodel.cpp +++ b/framework/domain/maillistmodel.cpp | |||
@@ -111,10 +111,10 @@ void MailListModel::setParentFolder(const QVariant &parentFolder) | |||
111 | Sink::Query query; | 111 | Sink::Query query; |
112 | query.liveQuery = true; | 112 | query.liveQuery = true; |
113 | query.requestedProperties << "subject" << "sender" << "senderName" << "date" << "unread" << "important" << "folder"; | 113 | query.requestedProperties << "subject" << "sender" << "senderName" << "date" << "unread" << "important" << "folder"; |
114 | query.propertyFilter.insert("folder", folder->identifier()); | ||
115 | query.resources << folder->resourceInstanceIdentifier(); | 114 | query.resources << folder->resourceInstanceIdentifier(); |
116 | query.sortProperty = "date"; | 115 | query.sortProperty = "date"; |
117 | query.limit = 100; | 116 | query.limit = 100; |
117 | query += Sink::Query::PropertyFilter("folder", *folder); | ||
118 | qWarning() << "Running folder query: " << folder->resourceInstanceIdentifier() << folder->identifier(); | 118 | qWarning() << "Running folder query: " << folder->resourceInstanceIdentifier() << folder->identifier(); |
119 | runQuery(query); | 119 | runQuery(query); |
120 | } | 120 | } |