[brasero] brasero-data-project: Fixed segfault when renaming or removing folder in...
- From: Joshua Lock <joshuagl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero] brasero-data-project: Fixed segfault when renaming or removing folder in...
- Date: Thu, 22 Aug 2013 16:14:37 +0000 (UTC)
commit 6540da8d1d53e3b31f0239aa44dd3832ca90c02e
Author: Andrej Belym <white wolf 2105 gmail com>
Date: Thu Aug 22 16:43:07 2013 +0100
brasero-data-project: Fixed segfault when renaming or removing folder in...
project.
When adding folder from filesystem to project and creating new folder in
this folder, removing or renaming causes segfault.
This happens because new folder must have flag 'is_grafted' (project node
not from real file or folder), but code in brasero-data-project.c in
function brasero_data_project_add_node_real doesn't handle nodes with flag
'is_fake' correctly (new empty folder has this flag). Node isn't marked as
grafted with function brasero_file_node_graft. I've just added call of this
function.
https://bugzilla.gnome.org/show_bug.cgi?id=679460
libbrasero-burn/brasero-data-project.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libbrasero-burn/brasero-data-project.c b/libbrasero-burn/brasero-data-project.c
index 52e8502..102d6d3 100644
--- a/libbrasero-burn/brasero-data-project.c
+++ b/libbrasero-burn/brasero-data-project.c
@@ -1679,6 +1679,7 @@ brasero_data_project_add_node_real (BraseroDataProject *self,
/* The node is a fake directory; graft it as well as all the
* nodes already in the tree with the same URI */
graft = brasero_data_project_uri_graft_nodes (self, uri);
+ brasero_file_node_graft (node, graft);
}
else {
gchar *parent_uri;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]