[anjuta] am-project: bgo #660065 - Can't create a new target in empty Makefile



commit a5cd2d2d38d3f991abb054daf370bb5512d70216
Author: SÃbastien Granjoux <seb sfo free fr>
Date:   Mon Sep 26 19:18:52 2011 +0200

    am-project: bgo #660065 - Can't create a new target in empty Makefile

 plugins/am-project/amp-group.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/am-project/amp-group.c b/plugins/am-project/amp-group.c
index 03cacb8..4fd771b 100644
--- a/plugins/am-project/amp-group.c
+++ b/plugins/am-project/amp-group.c
@@ -615,6 +615,7 @@ amp_group_node_save (AmpNode *group, AmpNode *parent, AmpProject *project, GErro
 {
 	AnjutaTokenFile *tfile;
 	AnjutaProjectNode *child;
+	gboolean ok = TRUE;
 
 	/* Save group */
 	tfile = AMP_GROUP_NODE (group)->tfile;
@@ -627,10 +628,11 @@ amp_group_node_save (AmpNode *group, AmpNode *parent, AmpProject *project, GErro
 	/* Save all children */
 	for (child = anjuta_project_node_first_child (ANJUTA_PROJECT_NODE (group)); child != NULL; child = anjuta_project_node_next_sibling (child))
 	{
-		if (!amp_node_save (AMP_NODE (child), group, project, error)) return FALSE;
+		/* Try to save all children even if some fail */
+		if (!amp_node_save (AMP_NODE (child), group, project, error)) ok = FALSE;
 	}
 
-	return TRUE;
+	return ok;
 }
 
 static gboolean



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