[brasero/gnome-2-30] Second fix for #613986 - Pressing create audio cd does nothing



commit ea9fc36a4d47929d3942923834f2315cba592dad
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Mon May 24 23:39:33 2010 +0200

    Second fix  for #613986  - Pressing create audio cd does nothing

 src/main.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 0c4a7b4..ab21d8c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -353,8 +353,7 @@ brasero_app_parse_options (BraseroApp *app)
 					  burn_project_uri,
 					  FALSE,
 					  TRUE,
-					  TRUE);
-
+					  burn_immediately != 0 /* This is to keep the current behavior which is open main window */);
 		if (g_remove (burn_project_uri) != 0) {
 			gchar *path;
 
@@ -422,11 +421,10 @@ brasero_app_parse_options (BraseroApp *app)
 			return;
 	}
 	else if (files) {
-		if (g_strv_length (files) == 1
-		&&  brasero_app_open_uri (app, files [0], FALSE))
-			return;
+		if (g_strv_length (files) != 1
+		||  brasero_app_open_uri (app, files [0], FALSE) == BRASERO_PROJECT_TYPE_INVALID)
+			brasero_app_data (app, burner, files, burn_immediately != 0);
 
-		brasero_app_data (app, burner, files, burn_immediately != 0);
 		if (burn_immediately)
 			return;
 	}



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