Commit b998e68d authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Service Runner] Do startsWith check case-insensitive

This codepath is hit when the search query is very short. Fixes "D" and "d" finding different, sometimes no, results.

BUG: 394202
FIXED-IN: 5.12.6

Differential Revision:
parent 681e2145
......@@ -248,7 +248,7 @@ private:
// If the term was < 3 chars and NOT at the beginning of the App's name or Exec, then
// chances are the user doesn't want that app.
if (weightedTermLength < 3) {
if (name.startsWith(term) || exec.startsWith(term)) {
if (name.startsWith(term, Qt::CaseInsensitive) || exec.startsWith(term, Qt::CaseInsensitive)) {
relevance = 0.9;
} else {
Supports Markdown
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