Commit d710841d authored by Christian Hergert's avatar Christian Hergert
Browse files

symbol-tree: clear symbol tree when changing documents

parent d89e0c6b
......@@ -504,6 +504,9 @@ gbp_symbol_layout_stack_addin_set_view (IdeLayoutStackAddin *addin,
g_assert (GBP_IS_SYMBOL_LAYOUT_STACK_ADDIN (self));
g_assert (!view || IDE_IS_LAYOUT_VIEW (view));
/* First clear any old symbol tree */
gbp_symbol_menu_button_set_symbol_tree (self->button, NULL);
if (IDE_IS_EDITOR_VIEW (view))
buffer = ide_editor_view_get_buffer (IDE_EDITOR_VIEW (view));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment