[anjuta] symbol-db: improved checks for closed projects on_scan_end_manager
- From: Massimo Cora' <mcora src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] symbol-db: improved checks for closed projects on_scan_end_manager
- Date: Tue, 2 Mar 2010 23:29:15 +0000 (UTC)
commit 7e6eafac7b612097ab351b7510d967dc24ef4423
Author: Massimo Corà <mcora src gnome org>
Date: Wed Mar 3 00:28:15 2010 +0100
symbol-db: improved checks for closed projects on_scan_end_manager
plugins/symbol-db/plugin.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/plugins/symbol-db/plugin.c b/plugins/symbol-db/plugin.c
index fc0543c..7a75cb0 100644
--- a/plugins/symbol-db/plugin.c
+++ b/plugins/symbol-db/plugin.c
@@ -2145,7 +2145,16 @@ on_scan_end_manager (SymbolDBEngine *dbe, gint process_id,
"is_adding_element %d", sdb_plugin->is_offline_scanning,
sdb_plugin->is_project_importing, sdb_plugin->is_project_updating,
sdb_plugin->is_adding_element);
-
+
+ /* is the project still opened? */
+ if (sdb_plugin->project_opened == NULL)
+ {
+ /* just return, the project may have been closed while we were waiting for the
+ * scanning to finish
+ */
+ return;
+ }
+
/**
* perform some checks on some booleans. If they're all successfully passed
* then activate the display of local view
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]