summaryrefslogtreecommitdiffstats
path: root/macosx/HBController.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-01-27 11:31:50 +0000
committerritsuka <[email protected]>2015-01-27 11:31:50 +0000
commit6823cb8cc2734ca388a9fcdec1e0e347fc4f32d0 (patch)
tree31bbb6ecb43536fee892119ac73a3eaec8aa6ab2 /macosx/HBController.m
parente8550395291bf598efd72615301667cc464e4532 (diff)
MacGui: disable the cancel button while the queue is scanning because there isn't a way to pause the scan. Use hb_state param.workdone.error to signal the result of an encode operation.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6818 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r--macosx/HBController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m
index 75c3c5ef1..3ada22255 100644
--- a/macosx/HBController.m
+++ b/macosx/HBController.m
@@ -314,7 +314,7 @@
[toolbarItem setLabel: @"Stop"];
[toolbarItem setPaletteLabel: @"Stop"];
[toolbarItem setToolTip: @"Stop Encoding"];
- return YES;
+ return (queueState != HBStateScanning);
}
if (action == @selector(pause:))
{