Commit 1f470c4d authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Remove check for defunct RunnerContext::Type

The concept is deprecated and the value is
nowhere inside of KRunner set.
parent 7074a4d3
......@@ -76,16 +76,6 @@ void LocationsRunner::match(Plasma::RunnerContext &context)
match.setId(QStringLiteral("openfile"));
}
context.addMatch(match);
} else if (type == Plasma::RunnerContext::Help) {
//qDebug() << "Locations matching because of" << type;
Plasma::QueryMatch match(this);
match.setType(Plasma::QueryMatch::ExactMatch);
match.setText(i18n("Open %1", term));
match.setIconName(QStringLiteral("system-help"));
match.setRelevance(1);
match.setType(Plasma::QueryMatch::ExactMatch);
match.setId(QStringLiteral("help"));
context.addMatch(match);
} else if (type == Plasma::RunnerContext::NetworkLocation || type == Plasma::RunnerContext::UnknownType) {
const bool filtered = KUriFilter::self()->filterUri(term, QStringList() << QStringLiteral("kshorturifilter"));
......
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