From 3c030a28e9313e9d69ab086adda69797d3833a33 Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 25 Feb 2015 18:01:49 +0100 Subject: bugfix: filtering by meta-categories (checked/unchecked, update available) didn't work --- src/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index d8d8533c..9e8d0c82 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -3053,7 +3053,8 @@ void MainWindow::on_categoriesList_itemSelectionChanged() std::vector content; foreach (const QModelIndex &index, indices) { int filterType = index.data(Qt::UserRole + 1).toInt(); - if (filterType == ModListSortProxy::TYPE_CATEGORY) { + if ((filterType == ModListSortProxy::TYPE_CATEGORY) + || (filterType == ModListSortProxy::TYPE_SPECIAL)) { int categoryId = index.data(Qt::UserRole).toInt(); if (categoryId != CategoryFactory::CATEGORY_NONE) { categories.push_back(categoryId); -- cgit v1.3.1