Fix for filter
fix for #749 + You can now search for sets using lower case: "frf", "dtk", "rtr" and so on. + You now need exact matches on set short and full names. "rtr" and "return to ravnica" will work. "return" will not work.
This commit is contained in:
parent
adcae59eb0
commit
5218e2f710
1 changed files with 2 additions and 2 deletions
|
@ -202,8 +202,8 @@ bool FilterItem::acceptSet(const CardInfo *info) const
|
||||||
|
|
||||||
status = false;
|
status = false;
|
||||||
for (i = info->getSets().constBegin(); i != info->getSets().constEnd(); i++)
|
for (i = info->getSets().constBegin(); i != info->getSets().constEnd(); i++)
|
||||||
if ((*i)->getShortName() == term
|
if ((*i)->getShortName().compare(term, Qt::CaseInsensitive) == 0
|
||||||
|| (*i)->getLongName().contains(term, Qt::CaseInsensitive)) {
|
|| (*i)->getLongName().compare(term, Qt::CaseInsensitive) == 0) {
|
||||||
status = true;
|
status = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue