Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment