Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Wed, 05 Apr 2017 16:04:19 UTC Commit: 4a0002178ad9cee0ff6377b74a9cc6c6ba02b010 https://github.com/geany/geany-plugins/commit/4a0002178ad9cee0ff6377b74a9cc6...
Log Message: ----------- projectorganizer: Require that prj_org != NULL inside expand_on_idle()
The previous code only checked this for paths shown in the sidebar but since the plugins also tries to perform the expansion for the current document when this option is enabled, it needs to be done for this case as well.
Just leave the function when prj_org == NULL.
Modified Paths: -------------- projectorganizer/src/prjorg-sidebar.c
Modified: projectorganizer/src/prjorg-sidebar.c 5 lines changed, 4 insertions(+), 1 deletions(-) =================================================================== @@ -1221,7 +1221,10 @@ static gboolean expand_on_idle(ExpandData *expand_data) { GeanyDocument *doc = document_get_current();
- if (prj_org && geany_data->app->project == expand_data->project && + if (!prj_org) + return FALSE; + + if (geany_data->app->project == expand_data->project && expand_data->expanded_paths) { gchar *item;
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).