diff options
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0ad57803..420242ad 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -6126,9 +6126,15 @@ void MainWindow::onFiltersCriteria(const std::vector<ModListSortProxy::Criteria> label = ""; } else if (criteria.size() == 1) { const auto& c = criteria[0]; - label = m_CategoryFactory.getCategoryNameByID(c.id); + + if (c.type == ModListSortProxy::TYPE_CONTENT) { + label = ModInfo::getContentTypeName(c.id); + } else { + label = m_CategoryFactory.getCategoryNameByID(c.id); + } + if (label.isEmpty()) { - log::error("category '{}' not found", c.id); + log::error("category {}:{} not found", c.type, c.id); } } else { label = tr("<Multiple>"); |
