summaryrefslogtreecommitdiffstats
path: root/common/domain/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/domain/event.cpp')
-rw-r--r--common/domain/event.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/domain/event.cpp b/common/domain/event.cpp
index c435c6b..08ce698 100644
--- a/common/domain/event.cpp
+++ b/common/domain/event.cpp
@@ -36,7 +36,7 @@ ResultSet TypeImplementation<Event>::queryIndexes(const Akonadi2::Query &query,
36{ 36{
37 QVector<QByteArray> keys; 37 QVector<QByteArray> keys;
38 if (query.propertyFilter.contains("uid")) { 38 if (query.propertyFilter.contains("uid")) {
39 Index uidIndex(Akonadi2::Store::storageLocation(), resourceInstanceIdentifier + "index.uid", Akonadi2::Storage::ReadOnly); 39 Index uidIndex(Akonadi2::Store::storageLocation(), resourceInstanceIdentifier + ".index.uid", Akonadi2::Storage::ReadOnly);
40 uidIndex.lookup(query.propertyFilter.value("uid").toByteArray(), [&](const QByteArray &value) { 40 uidIndex.lookup(query.propertyFilter.value("uid").toByteArray(), [&](const QByteArray &value) {
41 keys << value; 41 keys << value;
42 }, 42 },
@@ -50,7 +50,7 @@ ResultSet TypeImplementation<Event>::queryIndexes(const Akonadi2::Query &query,
50 50
51void TypeImplementation<Event>::index(const Event &type) 51void TypeImplementation<Event>::index(const Event &type)
52{ 52{
53 Index uidIndex(Akonadi2::Store::storageLocation(), type.resourceInstanceIdentifier() + "index.uid", Akonadi2::Storage::ReadWrite); 53 Index uidIndex(Akonadi2::Store::storageLocation(), type.resourceInstanceIdentifier() + ".index.uid", Akonadi2::Storage::ReadWrite);
54 const auto uid = type.getProperty("uid"); 54 const auto uid = type.getProperty("uid");
55 if (uid.isValid()) { 55 if (uid.isValid()) {
56 uidIndex.add(uid.toByteArray(), type.identifier()); 56 uidIndex.add(uid.toByteArray(), type.identifier());