This prevents a potential crash if `sidebar_update_tag_list()` is called with update=true and document=NULL.
Found this by accident while testing the tag tree filter PR. Currently, this is no problem as `sidebar_update_tag_list()` is not called with update=true and document=NULL but just in case it might happen. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/3080
-- Commit Summary --
* Update doc->priv->tag_tree_dirty only if doc is set
-- File Changes --
M src/sidebar.c (2)
-- Patch Links --
https://github.com/geany/geany/pull/3080.patch https://github.com/geany/geany/pull/3080.diff