mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-03 20:06:58 +03:00
fixed codeql
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
d151e97e3a
commit
10ae808da9
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue