summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueueController.mm
diff options
context:
space:
mode:
authordynaflash <[email protected]>2008-09-18 18:54:31 +0000
committerdynaflash <[email protected]>2008-09-18 18:54:31 +0000
commit3609b74b98372c0c4960a0a681fd1f0a4dc24c9b (patch)
tree8e259bace00169d3283cfeba6764f06c2a88ef5a /macosx/HBQueueController.mm
parentc8338193fc58ba12f46870027c1e1c6a2454d145 (diff)
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
Diffstat (limited to 'macosx/HBQueueController.mm')
-rw-r--r--macosx/HBQueueController.mm3
1 files changed, 2 insertions, 1 deletions
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?