Skip to content

Commit

Permalink
Set conversionSuccessful to YES only when the proper terminationStatu…
Browse files Browse the repository at this point in the history
…s was given then play the sound and reset it to its initial value
  • Loading branch information
halbtuerke committed Jun 19, 2009
1 parent a65cf68 commit 5f3b9a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AppController.m
Expand Up @@ -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];

Expand Down

0 comments on commit 5f3b9a6

Please sign in to comment.