[Xfce4-commits] [apps/xfburn] 01/01: Bugfix: When aborting autoformat, still check for success.

noreply at xfce.org noreply at xfce.org
Sat Apr 5 03:41:14 CEST 2014


This is an automated email from the git hooks/post-receive script.

squisher pushed a commit to branch master
in repository apps/xfburn.

commit 88cc3a86f16679105e49d34eb776d282470d6e7f
Author: David Mohr <david at mcbf.net>
Date:   Fri Apr 4 19:40:55 2014 -0600

    Bugfix: When aborting autoformat, still check for success.
---
 xfburn/xfburn-perform-burn.c |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/xfburn/xfburn-perform-burn.c b/xfburn/xfburn-perform-burn.c
index addb7ee..cf93c22 100644
--- a/xfburn/xfburn-perform-burn.c
+++ b/xfburn/xfburn-perform-burn.c
@@ -132,17 +132,17 @@ xfburn_auto_format(GtkWidget *dialog_progress, struct burn_drive *drive)
     usleep (500000);
   }
 
-  if (stopping) {
-    xfburn_progress_dialog_set_status (XFBURN_PROGRESS_DIALOG (dialog_progress), XFBURN_PROGRESS_DIALOG_STATUS_CANCELLED);
-    return 0;
-  }
- 
   /* Check for success */
   if (burn_drive_wrote_well (drive)) {
-    percent = 100.0;
- 
     DBG ("Formatting done");
  
+    if (stopping) {
+      xfburn_progress_dialog_set_status (XFBURN_PROGRESS_DIALOG (dialog_progress), XFBURN_PROGRESS_DIALOG_STATUS_CANCELLED);
+      return 0;
+    }
+    
+    percent = 100.0;
+ 
     xfburn_progress_dialog_set_progress_bar_fraction (XFBURN_PROGRESS_DIALOG (dialog_progress),
                                                       percent);
   } else {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list