diff --git a/khelpcenter/navigatorappgroupitem.cpp b/khelpcenter/navigatorappgroupitem.cpp --- a/khelpcenter/navigatorappgroupitem.cpp +++ b/khelpcenter/navigatorappgroupitem.cpp @@ -93,6 +93,7 @@ return; } KServiceGroup::List list = root->entries(); + bool no_children_present = true; for ( KServiceGroup::List::ConstIterator it = list.constBegin(); @@ -110,6 +111,7 @@ DocEntry *entry = new DocEntry( s->name(), url, s->icon() ); NavigatorAppItem *item = new NavigatorAppItem( entry, this ); item->setAutoDeleteDocEntry( true ); + no_children_present = false; } break; } @@ -123,6 +125,7 @@ appItem = new NavigatorAppGroupItem( entry, this, g->relPath() ); appItem->setAutoDeleteDocEntry( true ); if ( recursive ) appItem->populate( recursive ); + no_children_present = false; break; } default: @@ -131,6 +134,7 @@ } sortChildren( 0, Qt::AscendingOrder /* ascending */ ); mPopulated = true; + setHidden(no_children_present); } QString NavigatorAppGroupItem::documentationURL( const KService *s )