summaryrefslogtreecommitdiffstats
path: root/common/typeindex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/typeindex.cpp')
-rw-r--r--common/typeindex.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/typeindex.cpp b/common/typeindex.cpp
index 1e41267..e9a0f79 100644
--- a/common/typeindex.cpp
+++ b/common/typeindex.cpp
@@ -62,7 +62,9 @@ void TypeIndex::addProperty<QDateTime>(const QByteArray &property)
62{ 62{
63 auto indexer = [this, property](const QByteArray &identifier, const QVariant &value, Akonadi2::Storage::Transaction &transaction) { 63 auto indexer = [this, property](const QByteArray &identifier, const QVariant &value, Akonadi2::Storage::Transaction &transaction) {
64 // Trace() << "Indexing " << mType + ".index." + property << value.toByteArray(); 64 // Trace() << "Indexing " << mType + ".index." + property << value.toByteArray();
65 Index(mType + ".index." + property, transaction).add(value.toByteArray(), identifier); 65 if (value.isValid()) {
66 Index(mType + ".index." + property, transaction).add(value.toByteArray(), identifier);
67 }
66 }; 68 };
67 mIndexer.insert(property, indexer); 69 mIndexer.insert(property, indexer);
68 mProperties << property; 70 mProperties << property;