fixed codeql
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
d151e97e3a
commit
10ae808da9
@ -289,10 +289,10 @@ void ModFilterWidget::setCategories(QList<ModPlatform::Category> categories)
|
||||
}
|
||||
}
|
||||
|
||||
void ModFilterWidget::onCategoryClicked(QListWidgetItem* item)
|
||||
void ModFilterWidget::onCategoryClicked(QListWidgetItem* itm)
|
||||
{
|
||||
if (item)
|
||||
item->setCheckState(item->checkState() == Qt::Checked ? Qt::Unchecked : Qt::Checked);
|
||||
if (itm)
|
||||
itm->setCheckState(itm->checkState() == Qt::Checked ? Qt::Unchecked : Qt::Checked);
|
||||
m_filter->categoryIds.clear();
|
||||
for (auto i = 0; i < ui->categoriesList->count(); i++) {
|
||||
auto item = ui->categoriesList->item(i);
|
||||
|
Loading…
Reference in New Issue
Block a user