1
0
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:
Theron Tock 2011-06-16 15:49:36 -07:00
parent 54f6bae48f
commit ec794ef430

View File

@ -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;