Branch: refs/heads/master Author: Frank Lanitz frank@frank.uvena.de Committer: Frank Lanitz frank@frank.uvena.de Date: Tue, 19 Jun 2012 20:41:35 Commit: d18452cebaac8867c5da48553af0c152ed21e591 https://github.com/geany/geany-plugins/commit/d18452cebaac8867c5da48553af0c1...
Log Message: ----------- GProject: Fixing a GTK CRITICAL warning
Modified Paths: -------------- gproject/src/gproject-main.c
Modified: gproject/src/gproject-main.c 5 files changed, 4 insertions(+), 1 deletions(-) =================================================================== @@ -75,7 +75,10 @@ static void on_doc_activate(G_GNUC_UNUSED GObject * obj, G_GNUC_UNUSED GeanyDocu static void on_doc_close(G_GNUC_UNUSED GObject * obj, GeanyDocument * doc, G_GNUC_UNUSED gpointer user_data) { - g_return_if_fail(doc != NULL && doc->file_name != NULL); + g_return_if_fail(doc != NULL); + + if (doc->file_name == NULL) + return;
//tags of open files managed by geany - when the file gets closed, we should take care of it if (gprj_project_is_in_project(doc->file_name))
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).