[brasero] Check a little bit further to know whether or not an image in a BraseroTrackDataCfg is really the on



commit 0ff87f8db4fb5f64fa6cb112efcb2e74da650af6
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Tue May 12 20:18:38 2009 +0200

    Check a little bit further to know whether or not an image in a BraseroTrackDataCfg is really the only one file.
---
 libbrasero-burn/brasero-data-vfs.c       |    1 +
 libbrasero-burn/brasero-track-data-cfg.c |    3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libbrasero-burn/brasero-data-vfs.c b/libbrasero-burn/brasero-data-vfs.c
index 72c69aa..87bc61b 100644
--- a/libbrasero-burn/brasero-data-vfs.c
+++ b/libbrasero-burn/brasero-data-vfs.c
@@ -609,6 +609,7 @@ brasero_data_vfs_loading_node_result (GObject *owner,
 	stats = BRASERO_FILE_NODE_STATS (root);
 
 	if (stats && !stats->children
+	&&  brasero_file_node_get_n_children (root) <= 1
 	&& (!strcmp (g_file_info_get_content_type (info), "application/x-toc")
 	||  !strcmp (g_file_info_get_content_type (info), "application/x-cdrdao-toc")
 	||  !strcmp (g_file_info_get_content_type (info), "application/x-cue")
diff --git a/libbrasero-burn/brasero-track-data-cfg.c b/libbrasero-burn/brasero-track-data-cfg.c
index ccfec4a..fb87d59 100644
--- a/libbrasero-burn/brasero-track-data-cfg.c
+++ b/libbrasero-burn/brasero-track-data-cfg.c
@@ -403,7 +403,7 @@ brasero_track_data_cfg_node_shown (GtkTreeModel *model,
 	node->is_visible ++;
 
 	if (node->parent && !node->parent->is_root) {
-		if (!node->parent->is_expanded && node->parent->is_visible > 0) {
+		if (!node->parent->is_expanded && node->is_visible > 0) {
 			GtkTreePath *treepath;
 
 			node->parent->is_expanded = TRUE;
@@ -481,7 +481,6 @@ brasero_track_data_cfg_node_hidden (GtkTreeModel *model,
 		}
 	}
 
-
 	if (node->is_imported)
 		return;
 



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