From 507d29a0fc0765f0f8de49795eb100a258970d01 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Sat, 30 Nov 2019 03:29:54 -0500 Subject: fixed bad label for content categories --- src/mainwindow.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/mainwindow.cpp') 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 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(""); -- cgit v1.3.1