[anjuta] am-project: Avoid critical warnings when a group does not have a Makefile.am
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] am-project: Avoid critical warnings when a group does not have a Makefile.am
- Date: Sun, 14 Oct 2012 17:59:15 +0000 (UTC)
commit b5b9155c1cd16652b61e3a5fce75a43b8975d6ac
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Sat Oct 13 22:57:19 2012 +0200
am-project: Avoid critical warnings when a group does not have a Makefile.am
plugins/am-project/amp-group.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/am-project/amp-group.c b/plugins/am-project/amp-group.c
index 3877c0b..6d1bcf8 100644
--- a/plugins/am-project/amp-group.c
+++ b/plugins/am-project/amp-group.c
@@ -673,6 +673,9 @@ amp_group_node_save (AmpNode *group, AmpNode *parent, AmpProject *project, GErro
gboolean ok = TRUE;
GFile *directory;
+ /* Check if Makefile.am is missing, it happens in po directory by example */
+ if (AMP_GROUP_NODE (group)->makefile == NULL) return FALSE;
+
/* Create directory */
directory = g_file_get_parent (AMP_GROUP_NODE (group)->makefile);
g_file_make_directory (directory, NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]