From 2043d9931cb9baf1eef23240ea6061fc40fee67d Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Wed, 18 Feb 2026 19:48:12 +0100 Subject: Remove "Categories: " tooltips when there are no categories (#2339) --- src/modinforegular.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/modinforegular.cpp') 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& categories = getCategories(); + if (categories.empty()) { + return QString(); + } + std::wostringstream categoryString; categoryString << ToWString(tr("Categories:
")); CategoryFactory& categoryFactory = CategoryFactory::instance(); -- cgit v1.3.1