diff --git a/runners/services/servicerunner.cpp b/runners/services/servicerunner.cpp --- a/runners/services/servicerunner.cpp +++ b/runners/services/servicerunner.cpp @@ -360,8 +360,8 @@ } seen(action); - - if (!action.text().contains(term, Qt::CaseInsensitive)) { + const int matchIndex = action.text().indexOf(term, 0, Qt::CaseInsensitive); + if (matchIndex < 0) { continue; } @@ -377,7 +377,7 @@ match.setData(action.exec()); qreal relevance = 0.5; - if (action.text().startsWith(term, Qt::CaseInsensitive)) { + if (matchIndex == 0) { relevance += 0.05; }