summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueueController.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-02-23 07:40:50 +0000
committerritsuka <[email protected]>2015-02-23 07:40:50 +0000
commit7b0f081409e324a581140d8886a32cf3bf00024a (patch)
tree3c67ed2e9e9376066f3e82850e67a905306d66f3 /macosx/HBQueueController.m
parentae9594298196c8412e49966256ae45eb3584ce27 (diff)
MacGui: fix queue drag&drop when there is not job being encoded.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6938 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBQueueController.m')
-rw-r--r--macosx/HBQueueController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/HBQueueController.m b/macosx/HBQueueController.m
index 0963a453e..f3ec9fcf6 100644
--- a/macosx/HBQueueController.m
+++ b/macosx/HBQueueController.m
@@ -1382,7 +1382,7 @@
// We do not let the user drop a pending job before or *above*
// already finished or currently encoding jobs.
NSInteger encodingIndex = [self.jobs indexOfObject:self.currentJob];
- if (index <= encodingIndex)
+ if (encodingIndex != NSNotFound && index <= encodingIndex)
{
return NSDragOperationNone;
index = MAX (index, encodingIndex);