mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-20 10:17:16 +01:00
Make keyword matching case insensitive, like it is for names.
Fixes #2503.
This commit is contained in:
parent
54f6bae48f
commit
ec794ef430
@ -853,9 +853,8 @@ static bool filterMatches(const QString &text,
|
||||
set<string> keys = obj->getKeywords();
|
||||
set<string>::const_iterator iter;
|
||||
for (iter = keys.begin(); iter != keys.end(); ++iter) {
|
||||
if ((*iter).find(utf8.constData()) != string::npos) {
|
||||
return true;
|
||||
}
|
||||
QString keyword = QString::fromUtf8((*iter).c_str());
|
||||
if (keyword.contains(text, Qt::CaseInsensitive)) return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user