diff options
Diffstat (limited to 'src/filterlist.cpp')
| -rw-r--r-- | src/filterlist.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/filterlist.cpp b/src/filterlist.cpp index 69aca4c5..4287869d 100644 --- a/src/filterlist.cpp +++ b/src/filterlist.cpp @@ -225,11 +225,9 @@ QTreeWidgetItem* FilterList::addCriteriaItem( { auto* item = new CriteriaItem(this, name, type, categoryID); - if (root != nullptr) { - root->addChild(item); - } else { - ui->filters->addTopLevelItem(item); - } + // For now list all categories flatly without nestling them as there is + // no way to espand nodes in the filter view since clicking changes state. + ui->filters->addTopLevelItem(item); item->setTextAlignment(0, Qt::AlignCenter); |
