[brasero] Don't show "make another disc" button if we merged a session to a disc as this disc was unique



commit 085c960045889e20a82edf23f1b8579e7d3eb5ee
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Wed Jul 15 20:57:05 2009 +0200

    Don't show "make another disc" button if we merged a session to a disc as this disc was unique

 libbrasero-burn/brasero-burn-dialog.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libbrasero-burn/brasero-burn-dialog.c b/libbrasero-burn/brasero-burn-dialog.c
index d2d2538..9dcd232 100644
--- a/libbrasero-burn/brasero-burn-dialog.c
+++ b/libbrasero-burn/brasero-burn-dialog.c
@@ -1893,7 +1893,11 @@ brasero_burn_dialog_notify_success (BraseroBurnDialog *dialog)
 	brasero_burn_dialog_activity_stop (dialog, primary);
 	g_free (primary);
 
-	if (!brasero_burn_session_is_dest_file (priv->session)) {
+	/* Don't show the "Make Another Copy" button if:
+	 * - we wrote to a file
+	 * - we wrote a merged session */
+	if (!brasero_burn_session_is_dest_file (priv->session)
+	&&!(brasero_burn_session_get_flags (priv->session) & BRASERO_BURN_FLAG_MERGE)) {
 		/* Useful button but it shouldn't be used for images */
 		make_another = gtk_dialog_add_button (GTK_DIALOG (dialog),
 						      _("Make _Another Copy"),



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