X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fview.cpp;h=758e7118d8e94f2cee90f8334774056b8decc2b2;hp=b7ee331f165c175bdaaf1080561b2ae31650644e;hb=bc72e51ffa24d47a382b118bfe63df154dac9cf1;hpb=925763b09cd26608cf4b38ce7b44800948a0e5aa diff --git a/pv/view/view.cpp b/pv/view/view.cpp index b7ee331f..758e7118 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -1083,6 +1083,11 @@ void View::signals_changed() owner->remove_child_item(trace); } + // Remove any empty trace groups + for (shared_ptr group : list_by_type()) + if (group->child_items().size() == 0) + remove_child_item(group); + // Add and position the pending top levels items for (auto item : new_top_level_items) { // Position the item after the last item or at the top if there is none