[anjuta] symbol-db: Fix GLib-Critical



commit ee5b30c11d6791b6086c8108f30a52899a0ae009
Author: Johannes Schmid <jhs gnome org>
Date:   Tue Dec 7 12:17:55 2010 +0100

    symbol-db: Fix GLib-Critical

 plugins/symbol-db/plugin.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/symbol-db/plugin.c b/plugins/symbol-db/plugin.c
index 96b78a6..1380454 100644
--- a/plugins/symbol-db/plugin.c
+++ b/plugins/symbol-db/plugin.c
@@ -544,7 +544,8 @@ on_editor_destroy (SymbolDBPlugin *sdb_plugin, IAnjutaEditor *editor)
 	if (g_hash_table_size (sdb_plugin->editor_connected) <= 0)
 	{
 		DEBUG_PRINT ("%s", "displaying nothingâ?¦");
-		g_object_set (sdb_plugin->file_model, "file-path", NULL, NULL);
+		if (sdb_plugin->file_model)
+			g_object_set (sdb_plugin->file_model, "file-path", NULL, NULL);
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]