From 3609b74b98372c0c4960a0a681fd1f0a4dc24c9b Mon Sep 17 00:00:00 2001 From: dynaflash Date: Thu, 18 Sep 2008 18:54:31 +0000 Subject: MacGui: "Stop" command modifications - Clicking on the "stop" icon in the toolbar now produces a different alert window with three choices - " Continue Encoding " default, just dismisses the window and continues on its merry way. - " Cancel Current and Stop " Cancels the current encode and stops the queue - " Cancel Current and Continue " Cancels the current encode and moves to the next pending encode (if there is one). - Also fixed an issue with deleting a canceled encode at the top of the queue list. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1718 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/HBQueueController.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'macosx/HBQueueController.mm') diff --git a/macosx/HBQueueController.mm b/macosx/HBQueueController.mm index cb8be2351..0e1476128 100644 --- a/macosx/HBQueueController.mm +++ b/macosx/HBQueueController.mm @@ -473,7 +473,8 @@ if (fWorkingCount > 0) /* if this is a currently encoding job, we need to be sure to alert the user, * to let them decide to cancel it first, then if they do, we can come back and * remove it */ - if (row == fEncodingQueueItem) + + if ([[[fJobGroups objectAtIndex:row] objectForKey:@"Status"] intValue] == 1) { NSString * alertTitle = [NSString stringWithFormat:NSLocalizedString(@"Stop This Encode and Remove It ?", nil)]; // Which window to attach the sheet to? -- cgit v1.2.3