Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Wed, 15 Oct 2014 08:39:37 UTC Commit: 08fd8ded5543abf92357e0061d14452925be0e35 https://github.com/geany/geany-plugins/commit/08fd8ded5543abf92357e0061d1445...
Log Message: ----------- gproject: replace g_return_if_fail() with normal if check
This can legally happen on plugin unload/load.
Modified Paths: -------------- gproject/src/gproject-project.c
Modified: gproject/src/gproject-project.c 3 lines changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -466,7 +466,8 @@ gint gprj_project_add_properties_tab(GtkWidget *notebook)
void gprj_project_close(void) { - g_return_if_fail(g_prj); + if (!g_prj) + return; /* can happen on plugin reload */
if (g_prj->generate_tags) g_hash_table_foreach(g_prj->file_tag_table, (GHFunc)workspace_remove_tag, NULL);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org