From 734bd0ed20196206364d87c584dce3e1e498f4cd Mon Sep 17 00:00:00 2001 From: AL Date: Thu, 9 Jan 2020 02:00:50 +0100 Subject: List all categories flatly in filters view as nestled ones would otherwise not be accessible. --- src/filterlist.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/filterlist.cpp') 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); -- cgit v1.3.1