Commit 47116924 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

SearchPlugin: abort search query of unknown types

When searching Collection that has no mimetype or just inode/directory,
we cannot map this to a query type which then asserts lower in search
core code which needs a known query type.

BUG: 379153
FIXED-IN: 5.6.1
parent 044e01b3
......@@ -323,6 +323,9 @@ QSet<qint64> SearchPlugin::search(const QString &akonadiQuery, const QVector<qin
mimeTypes.contains(QStringLiteral("application/x-vnd.akonadi.calendar.freebusy"))) {
t = recursiveCalendarTermMapping(term);
} else {
// Unknown type
return {};
if (searchQuery.limit() > 0) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment