diff options
| author | Tannin <devnull@localhost> | 2015-02-25 18:01:49 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-02-25 18:01:49 +0100 |
| commit | 3c030a28e9313e9d69ab086adda69797d3833a33 (patch) | |
| tree | a90ef4c06eca31b38fe1d9224ec1b9fca30e8384 /src/mainwindow.cpp | |
| parent | 6b4cb9ff4c7d5627a7b84c9969e5381063e60b93 (diff) | |
bugfix: filtering by meta-categories (checked/unchecked, update available) didn't work
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<int> 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);
|
