From 7b0f081409e324a581140d8886a32cf3bf00024a Mon Sep 17 00:00:00 2001 From: ritsuka Date: Mon, 23 Feb 2015 07:40:50 +0000 Subject: 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 --- macosx/HBQueueController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3