From a66efed44af2f9bc917d265ca7640ded40683f05 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 30 May 2024 17:46:42 +0300 Subject: Don't print classes derived from hidden on build configuration classes page --- mod/mod-build-configs.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mod/mod-build-configs.cxx') diff --git a/mod/mod-build-configs.cxx b/mod/mod-build-configs.cxx index 0ac4615..ce79edb 100644 --- a/mod/mod-build-configs.cxx +++ b/mod/mod-build-configs.cxx @@ -125,19 +125,19 @@ handle (request& rq, response& rs) s << DIV(ID="filter-heading") << "Build Configuration Classes" << ~DIV << P(ID="filter"); + bool printed (false); for (auto b (cls.begin ()), i (b), e (cls.end ()); i != e; ++i) { - // Skip the 'hidden' class. + // Skip the hidden classes. // const string& c (*i); - if (c != "hidden") + if (!derived (c, "hidden")) { - // Note that here we rely on the fact that the first class in the list - // can never be 'hidden' (is always 'all'). - // - if (i != b) + if (printed) s << ' '; + else + printed = true; print_class_name (c, c == selected_class); -- cgit v1.1