Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Feb 13, 2020
1 parent f3da3f0 commit af3b6c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pluginsdialog.cpp
Expand Up @@ -624,10 +624,10 @@ void PluginsDialog::selectablePluginsCheckBoxToggled(bool pChecked)
// are visible

bool hideCategory = true;
QModelIndex categoryItemModelIndex = categoryItem->modelIndex();

for (int i = 0, iMax = categoryItem->childCount(); i < iMax; ++i) {
if (!mGui->treeView->isRowHidden(categoryItem->child(i)->index(),
categoryItem->modelIndex())) {
if (!mGui->treeView->isRowHidden(i, categoryItemModelIndex)) {
hideCategory = false;

break;
Expand Down

0 comments on commit af3b6c4

Please sign in to comment.