[anjuta] symbol-db: fixed bgo #664413 - Symbols not updated correctly when switching branches



commit f9debafa16188676a06532771f4f17ed205d61b9
Author: Massimo Corà <mcora src gnome org>
Date:   Wed Dec 28 23:27:14 2011 +0100

    symbol-db: fixed bgo #664413 - Symbols not updated correctly when switching branches

 plugins/symbol-db/plugin.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/symbol-db/plugin.c b/plugins/symbol-db/plugin.c
index 80eaa7f..d4106b1 100644
--- a/plugins/symbol-db/plugin.c
+++ b/plugins/symbol-db/plugin.c
@@ -486,8 +486,7 @@ on_editor_buffer_symbol_update_scan_end (SymbolDBEngine *dbe, gint process_id,
 			/* remove both the items */
 			g_ptr_array_remove_index (sdb_plugin->buffer_update_ids, i);
 			
-			g_ptr_array_remove_index (sdb_plugin->buffer_update_files, 
-													i);
+			g_ptr_array_remove_index (sdb_plugin->buffer_update_files, i);
 
 			/* no need to free the string coz the g_ptr_array is built with
 			 * g_ptr_array_new_with_free_func (g_free)
@@ -1600,7 +1599,7 @@ on_project_loaded (IAnjutaProjectManager *pm, GError *error,
 
 		DEBUG_PRINT ("Updating project symbols.");
 		/* update any files of the project which isn't up-to-date */
-		if (do_update_project_symbols (sdb_plugin, sdb_plugin->project_root_dir) == FALSE)
+		if (do_update_project_symbols (sdb_plugin, sdb_plugin->project_opened) == FALSE)
 		{
 			DEBUG_PRINT ("no changes. Skipping.");
 		}



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