From 5f3b9a642fbd80980ab45908cc8b7f328c702db2 Mon Sep 17 00:00:00 2001 From: Patrick Mosby Date: Fri, 19 Jun 2009 11:38:56 +0200 Subject: [PATCH] Set conversionSuccessful to YES only when the proper terminationStatus was given then play the sound and reset it to its initial value --- AppController.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AppController.m b/AppController.m index a883ce1..52528e9 100644 --- a/AppController.m +++ b/AppController.m @@ -294,13 +294,16 @@ -(void)taskTerminated:(NSNotification *)note } else { [alert setMessageText:@"Conversion finished"]; [alert setAlertStyle:NSInformationalAlertStyle]; + conversionSuccessful = YES; } + [self playSound:conversionSuccessful]; [alert beginSheetModalForWindow:mainWindow modalDelegate:self didEndSelector:nil contextInfo:nil]; [task release]; task = nil; + conversionSuccessful = NO; [startTranscodeButton setState:0]; [startTranscodeButton setEnabled: NO];