summaryrefslogtreecommitdiffstats
path: root/common/domain/mail.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-16 17:45:20 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-16 17:47:48 +0100
commit45a5bf6910db54f358409e7c407b8081cdd711a4 (patch)
treea9a27768c7ded92c59358950462330a120d7a0c6 /common/domain/mail.cpp
parent16310543c4010d4cb8b8e8331ba0a669b1e9ff88 (diff)
downloadsink-45a5bf6910db54f358409e7c407b8081cdd711a4.tar.gz
sink-45a5bf6910db54f358409e7c407b8081cdd711a4.zip
Added an index for mail sorting by date on folder queries
Diffstat (limited to 'common/domain/mail.cpp')
-rw-r--r--common/domain/mail.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/domain/mail.cpp b/common/domain/mail.cpp
index 69c351c..29c72c2 100644
--- a/common/domain/mail.cpp
+++ b/common/domain/mail.cpp
@@ -51,6 +51,7 @@ static TypeIndex &getIndex()
51 index->addProperty<QString>("subject"); 51 index->addProperty<QString>("subject");
52 index->addProperty<QDateTime>("date"); 52 index->addProperty<QDateTime>("date");
53 index->addProperty<QByteArray>("folder"); 53 index->addProperty<QByteArray>("folder");
54 index->addPropertyWithSorting<QByteArray, QDateTime>("folder", "date");
54 } 55 }
55 return *index; 56 return *index;
56} 57}