sysprof: clear some models when changing callgraph view

This is just more attempt to avoid some listmodel issues.
This commit is contained in:
Christian Hergert
2023-07-25 14:16:59 -07:00
parent 24fa82f8ee
commit 4822b02f2e

View File

@ -315,12 +315,18 @@ make_descendant_root_action (GtkWidget *widget,
SysprofSymbol *symbol = sysprof_callgraph_frame_get_symbol (frame); SysprofSymbol *symbol = sysprof_callgraph_frame_get_symbol (frame);
if (sysprof_symbol_get_kind (symbol) != SYSPROF_SYMBOL_KIND_ROOT) if (sysprof_symbol_get_kind (symbol) != SYSPROF_SYMBOL_KIND_ROOT)
{
sysprof_callgraph_view_set_utility_summary (self, NULL);
sysprof_callgraph_view_set_utility_traceables (self, NULL);
gtk_column_view_set_model (self->descendants_column_view, NULL);
sysprof_callgraph_descendants_async (self->callgraph, sysprof_callgraph_descendants_async (self->callgraph,
symbol, symbol,
NULL, NULL,
sysprof_callgraph_view_descendants_cb, sysprof_callgraph_view_descendants_cb,
g_object_ref (self)); g_object_ref (self));
} }
}
} }
static void static void