[anjuta] symbol-db: Fixed an infinite recursion bug with keyboard row expansion
- From: Naba Kumar <naba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] symbol-db: Fixed an infinite recursion bug with keyboard row expansion
- Date: Fri, 9 Apr 2010 21:18:22 +0000 (UTC)
commit a12c37f722ed83c530ab40046762cb322551b5ab
Author: Naba Kumar <naba gnome org>
Date: Sat Apr 10 00:17:30 2010 +0300
symbol-db: Fixed an infinite recursion bug with keyboard row expansion
plugins/symbol-db/symbol-db-model.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-model.c b/plugins/symbol-db/symbol-db-model.c
index 938906f..6236417 100644
--- a/plugins/symbol-db/symbol-db-model.c
+++ b/plugins/symbol-db/symbol-db-model.c
@@ -780,13 +780,14 @@ sdb_model_iter_children (GtkTreeModel *tree_model,
sdb_model_page_fault (SYMBOL_DB_MODEL (tree_model),
parent_node, offset);
node = sdb_model_node_get_child (parent_node, offset);
- if (node)
- sdb_model_ensure_node_children (SYMBOL_DB_MODEL (tree_model),
- node, FALSE, FALSE);
}
g_return_val_if_fail (node != NULL, FALSE);
}
+ /* Apparently view can call this funtion without testing has_child first */
+ if (!sdb_model_get_has_child (SYMBOL_DB_MODEL(tree_model), node))
+ return FALSE;
+
if (!node->children_ensured)
sdb_model_ensure_node_children (SYMBOL_DB_MODEL (tree_model),
node, FALSE, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]