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)
|
if (itm)
|
||||||
item->setCheckState(item->checkState() == Qt::Checked ? Qt::Unchecked : Qt::Checked);
|
itm->setCheckState(itm->checkState() == Qt::Checked ? Qt::Unchecked : Qt::Checked);
|
||||||
m_filter->categoryIds.clear();
|
m_filter->categoryIds.clear();
|
||||||
for (auto i = 0; i < ui->categoriesList->count(); i++) {
|
for (auto i = 0; i < ui->categoriesList->count(); i++) {
|
||||||
auto item = ui->categoriesList->item(i);
|
auto item = ui->categoriesList->item(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user