summaryrefslogtreecommitdiff
path: root/src/modinforegular.cpp
diff options
context:
space:
mode:
authorJonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com>2026-02-18 19:48:12 +0100
committerGitHub <noreply@github.com>2026-02-18 19:48:12 +0100
commit2043d9931cb9baf1eef23240ea6061fc40fee67d (patch)
treec337eed239a5da6e14f387fc32f94933f2456680 /src/modinforegular.cpp
parent4da0bffeee05c4589ae4d0addc7c695e31669990 (diff)
Remove "Categories: " tooltips when there are no categories (#2339)
Diffstat (limited to 'src/modinforegular.cpp')
-rw-r--r--src/modinforegular.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modinforegular.cpp b/src/modinforegular.cpp
index c529c054..0e73b70c 100644
--- a/src/modinforegular.cpp
+++ b/src/modinforegular.cpp
@@ -744,6 +744,10 @@ QString ModInfoRegular::getDescription() const
.arg(name());
} else {
const std::set<int>& categories = getCategories();
+ if (categories.empty()) {
+ return QString();
+ }
+
std::wostringstream categoryString;
categoryString << ToWString(tr("Categories: <br>"));
CategoryFactory& categoryFactory = CategoryFactory::instance();