Commit a89ec508 authored by Christian Kamm's avatar Christian Kamm
Browse files

Locator: Use all matching filters, not just the highest priority one.

Reviewed-by: con
parent cbc1854f
......@@ -404,12 +404,15 @@ QList<ILocatorFilter*> LocatorWidget::filtersFor(const QString &text, QString &s
prefix = text.left(whiteSpace);
if (!prefix.isEmpty()) {
prefix = prefix.toLower();
QList<ILocatorFilter *> prefixFilters;
foreach (ILocatorFilter *filter, filters) {
if (prefix == filter->shortcutString()) {
searchText = text.mid(whiteSpace+1);
return QList<ILocatorFilter*>() << filter;
prefixFilters << filter;
}
}
if (!prefixFilters.isEmpty())
return prefixFilters;
}
searchText = text;
QList<ILocatorFilter*> activeFilters;
......
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