[brasero/gnome-2-30] Do not ask for a disc with a 0 size when replacing a disc



commit 502cacf7ec63d72f7123443c9c819f777b1a4d17
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Fri May 21 13:31:27 2010 +0200

    Do not ask for a disc with a 0 size when replacing a disc

 libbrasero-burn/brasero-burn-dialog.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libbrasero-burn/brasero-burn-dialog.c b/libbrasero-burn/brasero-burn-dialog.c
index 26d9189..df9fd6a 100644
--- a/libbrasero-burn/brasero-burn-dialog.c
+++ b/libbrasero-burn/brasero-burn-dialog.c
@@ -533,14 +533,14 @@ brasero_burn_dialog_get_media_type_string (BraseroBurn *burn,
 
 		if ((type & BRASERO_MEDIUM_CD) && !(type & BRASERO_MEDIUM_DVD)) {
 			if (!insert) {
-				if (isosize)
+				if (isosize > 0)
 					message = g_strdup_printf (_("Please replace the disc with a writable CD with at least %i MiB of free space."), 
 								   (int) (isosize / 1048576));
 				else
 					message = g_strdup (_("Please replace the disc with a writable CD."));
 			}
 			else {
-				if (isosize)
+				if (isosize > 0)
 					message = g_strdup_printf (_("Please insert a writable CD with at least %i MiB of free space."), 
 								   (int) (isosize / 1048576));
 				else
@@ -549,14 +549,14 @@ brasero_burn_dialog_get_media_type_string (BraseroBurn *burn,
 		}
 		else if (!(type & BRASERO_MEDIUM_CD) && (type & BRASERO_MEDIUM_DVD)) {
 			if (!insert) {
-				if (isosize)
+				if (isosize > 0)
 					message = g_strdup_printf (_("Please replace the disc with a writable DVD with at least %i MiB of free space."), 
 								   (int) (isosize / 1048576));
 				else
 					message = g_strdup (_("Please replace the disc with a writable DVD."));
 			}
 			else {
-				if (isosize)
+				if (isosize > 0)
 					message = g_strdup_printf (_("Please insert a writable DVD with at least %i MiB of free space."), 
 								   (int) (isosize / 1048576));
 				else



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