summaryrefslogtreecommitdiffstats
path: root/common/domain/folder.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-11-19 17:37:39 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-11-19 17:37:39 +0100
commit8d5684292ef92f32487ba32df716a00c4a0841b5 (patch)
tree1af55d3216f79175a55c1890d75cef2ae1f041d0 /common/domain/folder.cpp
parentef205affdb73bfdbef5830996e6336e583660fbc (diff)
downloadsink-8d5684292ef92f32487ba32df716a00c4a0841b5.tar.gz
sink-8d5684292ef92f32487ba32df716a00c4a0841b5.zip
Loading data with the new model for the test client
Diffstat (limited to 'common/domain/folder.cpp')
-rw-r--r--common/domain/folder.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/domain/folder.cpp b/common/domain/folder.cpp
index 82f6c1f..989d2c4 100644
--- a/common/domain/folder.cpp
+++ b/common/domain/folder.cpp
@@ -60,6 +60,7 @@ void TypeImplementation<Folder>::index(const QByteArray &identifier, const Buffe
60 const auto parent = bufferAdaptor.getProperty("parent"); 60 const auto parent = bufferAdaptor.getProperty("parent");
61 Trace() << "indexing " << identifier << " with parent " << parent.toByteArray(); 61 Trace() << "indexing " << identifier << " with parent " << parent.toByteArray();
62 if (parent.isValid()) { 62 if (parent.isValid()) {
63 Q_ASSERT(!parent.toByteArray().isEmpty());
63 Index("folder.index.parent", transaction).add(parent.toByteArray(), identifier); 64 Index("folder.index.parent", transaction).add(parent.toByteArray(), identifier);
64 } else { 65 } else {
65 Index("folder.index.parent", transaction).add("toplevel", identifier); 66 Index("folder.index.parent", transaction).add("toplevel", identifier);