Commit 59b2d1ef authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Windowed Widgets Runner] Don't access invalid KPluginMetaData

BUG: 372017
FIXED-IN: 5.8.4

Differential Revision: https://phabricator.kde.org/D3356
parent 7154fb68
......@@ -61,6 +61,10 @@ void WindowedWidgetsRunner::match(Plasma::RunnerContext &context)
QList<Plasma::QueryMatch> matches;
foreach (const KPluginMetaData &md, Plasma::PluginLoader::self()->listAppletMetaData(QString())) {
if (!md.isValid()) {
continue;
}
if (((md.name().contains(term, Qt::CaseInsensitive) ||
md.value(QLatin1String("GenericName")).contains(term, Qt::CaseInsensitive) ||
md.description().contains(term, Qt::CaseInsensitive)) ||
......
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