diff options
Diffstat (limited to 'common/domain/folder.cpp')
-rw-r--r-- | common/domain/folder.cpp | 1 |
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); |