[anjuta] symbol-db: bgo#605952 - Some small fixes for symbol-db



commit 39f866a336ef3e51fa91a5362eb023514aca5ddd
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Wed Jan 6 23:58:55 2010 +0100

    symbol-db: bgo#605952 -  Some small fixes for symbol-db

 plugins/symbol-db/plugin.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/symbol-db/plugin.c b/plugins/symbol-db/plugin.c
index 47ba8c2..d5c18fc 100644
--- a/plugins/symbol-db/plugin.c
+++ b/plugins/symbol-db/plugin.c
@@ -1250,8 +1250,8 @@ clear_project_progress_bar (SymbolDBEngine *dbe, gpointer data)
 						 sdb_plugin->sdbe_project);
 	
 	/* ok, enable local symbols view */
-	if (sdb_plugin->current_editor != NULL  &&
-	    IANJUTA_IS_EDITOR (sdb_plugin->current_editor) == FALSE)
+	if (sdb_plugin->current_editor == NULL  ||
+	    IANJUTA_IS_FILE (sdb_plugin->current_editor) == FALSE)
 	{
 		return;
 	}
@@ -1582,7 +1582,7 @@ do_check_offline_files_changed (SymbolDBPlugin *sdb_plugin)
 	GHashTable *prj_elements_hash;
 	GPtrArray *to_add_files = NULL;
 	gint i;
-	gint real_added ;
+	gint real_added = 0;
 	
 	pm = anjuta_shell_get_interface (ANJUTA_PLUGIN (sdb_plugin)->shell,
 									 IAnjutaProjectManager, NULL);	



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