Remove check for defunct RunnerContext::Type

The concept is deprecated and the value is
nowhere inside of KRunner set.
wilder-5.22
Alexander Lohnau 5 years ago
parent 7074a4d342
commit 1f470c4de6
  1. 10
      runners/locations/locationrunner.cpp

@ -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"));

Loading…
Cancel
Save