[anjuta/gnome-3-6] am-project: bgo #681073 - Anjuta crashes when switching git branches of the current project on the c
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gnome-3-6] am-project: bgo #681073 - Anjuta crashes when switching git branches of the current project on the c
- Date: Wed, 17 Oct 2012 18:56:46 +0000 (UTC)
commit 3da42ac4816f3b4715ddaa82780c68dd6a96cefa
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Wed Oct 17 20:55:19 2012 +0200
am-project: bgo #681073 - Anjuta crashes when switching git branches of the current project on the commandline
plugins/am-project/am-project.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/am-project/am-project.c b/plugins/am-project/am-project.c
index 48589a5..8450955 100644
--- a/plugins/am-project/am-project.c
+++ b/plugins/am-project/am-project.c
@@ -1633,7 +1633,7 @@ amp_project_duplicate_node (AnjutaProjectNode *old_node)
amp_group_node_add_token (AMP_GROUP_NODE (new_node), amp_group_node_get_first_token (AMP_GROUP_NODE (old_node), AM_GROUP_TOKEN_DIST_SUBDIRS), AM_GROUP_TOKEN_DIST_SUBDIRS);
}
- if (anjuta_project_node_parent (old_node) == NULL)
+ if (AMP_IS_PROJECT (old_node))
{
// FIXME: It would be better to write a duplicate function to avoid this code
((AmpProject *)new_node)->lang_manager = (((AmpProject *)old_node)->lang_manager != NULL) ? g_object_ref (((AmpProject *)old_node)->lang_manager) : NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]