[anjuta/newproject] Fix a crash when selected item in project pane
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/newproject] Fix a crash when selected item in project pane
- Date: Sun, 25 Apr 2010 10:27:37 +0000 (UTC)
commit c273528e073ba28fa9e6fa8e9d9488e56daf376c
Author: Sébastien Granjoux <seb sfo free fr>
Date: Sun Apr 25 12:26:26 2010 +0200
Fix a crash when selected item in project pane
plugins/project-manager/plugin.c | 1 -
plugins/project-manager/tree-data.c | 2 +-
2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plugins/project-manager/plugin.c b/plugins/project-manager/plugin.c
index 5fd70b0..3454c1d 100644
--- a/plugins/project-manager/plugin.c
+++ b/plugins/project-manager/plugin.c
@@ -1047,7 +1047,6 @@ on_treeview_selection_changed (GtkTreeSelection *sel,
g_signal_emit_by_name (G_OBJECT (plugin), "element_selected",
selected_file);
g_free (uri);
- g_object_unref (selected_file);
} else {
anjuta_shell_remove_value (ANJUTA_PLUGIN(plugin)->shell,
IANJUTA_PROJECT_MANAGER_CURRENT_URI, NULL);
diff --git a/plugins/project-manager/tree-data.c b/plugins/project-manager/tree-data.c
index 61a9b6c..a9e0461 100644
--- a/plugins/project-manager/tree-data.c
+++ b/plugins/project-manager/tree-data.c
@@ -318,7 +318,7 @@ gbf_tree_data_new_source (AnjutaProjectNode *source)
{
data->group = g_object_ref (anjuta_project_group_get_directory (parent));
}
- else
+ else if (anjuta_project_node_get_type (parent) == ANJUTA_PROJECT_TARGET)
{
AnjutaProjectNode *group;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]