mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
sysprof: clear some models when changing callgraph view
This is just more attempt to avoid some listmodel issues.
This commit is contained in:
@ -315,11 +315,17 @@ 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_descendants_async (self->callgraph,
|
{
|
||||||
symbol,
|
sysprof_callgraph_view_set_utility_summary (self, NULL);
|
||||||
NULL,
|
sysprof_callgraph_view_set_utility_traceables (self, NULL);
|
||||||
sysprof_callgraph_view_descendants_cb,
|
gtk_column_view_set_model (self->descendants_column_view, NULL);
|
||||||
g_object_ref (self));
|
|
||||||
|
sysprof_callgraph_descendants_async (self->callgraph,
|
||||||
|
symbol,
|
||||||
|
NULL,
|
||||||
|
sysprof_callgraph_view_descendants_cb,
|
||||||
|
g_object_ref (self));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user