summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueueController.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-07-24 10:10:40 +0000
committerritsuka <[email protected]>2015-07-24 10:10:40 +0000
commit0a100b66d99b69ffbd0dd16e06e05515531c8e1f (patch)
tree0f586a2a14cbd5262d87f285c0ecb03cd21fd191 /macosx/HBQueueController.m
parentae2470b07ab1a3ae7d97668d09b60b4c698fe234 (diff)
MacGui: more missing files.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7374 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBQueueController.m')
-rw-r--r--macosx/HBQueueController.m29
1 files changed, 17 insertions, 12 deletions
diff --git a/macosx/HBQueueController.m b/macosx/HBQueueController.m
index c366ce14e..b54143ff2 100644
--- a/macosx/HBQueueController.m
+++ b/macosx/HBQueueController.m
@@ -1021,15 +1021,16 @@
{
// since we are not a currently encoding item, we can just be edit it
HBJob *item = [[self.jobs[row] representedObject] copy];
- [self.controller openJob:item];
-
- // Now that source is loaded and settings applied, delete the queue item from the queue
- [self.outlineView beginUpdates];
- [self removeQueueItemAtIndex:row];
- [self.outlineView removeItemsAtIndexes:[NSIndexSet indexSetWithIndex:row] inParent:nil withAnimation:NSTableViewAnimationEffectFade];
- [self.outlineView endUpdates];
+ if ([self.controller openJob:item])
+ {
+ // Now that source is loaded and settings applied, delete the queue item from the queue
+ [self.outlineView beginUpdates];
+ [self removeQueueItemAtIndex:row];
+ [self.outlineView removeItemsAtIndexes:[NSIndexSet indexSetWithIndex:row] inParent:nil withAnimation:NSTableViewAnimationEffectFade];
+ [self.outlineView endUpdates];
- [self getQueueStats];
+ [self getQueueStats];
+ }
}
}
@@ -1050,10 +1051,14 @@
[self cancelCurrentJobAndContinue];
}
- [self.jobs beginTransaction];
- [self.controller openJob:job];
- [self removeQueueItemAtIndex:index];
- [self.jobs commit];
+ if ([self.controller openJob:job])
+ {
+ [self.jobs beginTransaction];
+ [self.controller openJob:job];
+ [self removeQueueItemAtIndex:index];
+ [self.jobs commit];
+ [self getQueueStats];
+ }
}
}