[brasero] Don't ask the user if he wants to keep the file selection if we're going to open a new image or disc



commit 0f8e8f9cce9bdace97604a1d78b33535373c5b87
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Sun Dec 6 17:39:18 2009 +0100

    Don't ask the user if he wants to keep the file selection if we're going to open a new image or disc-copy project

 src/brasero-project-manager.c |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/src/brasero-project-manager.c b/src/brasero-project-manager.c
index cd6fb8f..8d9718c 100644
--- a/src/brasero-project-manager.c
+++ b/src/brasero-project-manager.c
@@ -515,12 +515,16 @@ brasero_project_manager_switch (BraseroProjectManager *manager,
 		BraseroBurnResult result;
 		gboolean keep_files = FALSE;
 
-		if (manager->priv->type != type
-		&& (((manager->priv->type == BRASERO_PROJECT_TYPE_AUDIO ||
-		      manager->priv->type == BRASERO_PROJECT_TYPE_VIDEO) &&
-		     type == BRASERO_PROJECT_TYPE_DATA)
-		||  manager->priv->type == BRASERO_PROJECT_TYPE_DATA))
-			keep_files = TRUE;
+		if (type == BRASERO_PROJECT_TYPE_AUDIO
+		||  type == BRASERO_PROJECT_TYPE_DATA
+		||  type == BRASERO_PROJECT_TYPE_VIDEO) {
+			if (manager->priv->type != type
+			&& (((manager->priv->type == BRASERO_PROJECT_TYPE_AUDIO ||
+			      manager->priv->type == BRASERO_PROJECT_TYPE_VIDEO) &&
+			     type == BRASERO_PROJECT_TYPE_DATA)
+			||  manager->priv->type == BRASERO_PROJECT_TYPE_DATA))
+				keep_files = TRUE;
+		}
 
 		result = brasero_project_confirm_switch (BRASERO_PROJECT (manager->priv->project), keep_files);
 		if (result == BRASERO_BURN_CANCEL)



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