summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-11-30 03:29:54 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-30 03:29:54 -0500
commit507d29a0fc0765f0f8de49795eb100a258970d01 (patch)
tree55c44a178a734f12849f245c227af705fe8949ff /src/mainwindow.cpp
parenta38d1723bffcd20bc7011c0fe635636b936aa78b (diff)
fixed bad label for content categories
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp10
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>");