summaryrefslogtreecommitdiffstats
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
parentae2470b07ab1a3ae7d97668d09b60b4c698fe234 (diff)
MacGui: more missing files.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7374 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/HBAppDelegate.m2
-rw-r--r--macosx/HBQueueController.m29
2 files changed, 18 insertions, 13 deletions
diff --git a/macosx/HBAppDelegate.m b/macosx/HBAppDelegate.m
index 33b82c315..fddd8a48d 100644
--- a/macosx/HBAppDelegate.m
+++ b/macosx/HBAppDelegate.m
@@ -180,7 +180,7 @@
- (void)application:(NSApplication *)sender openFiles:(NSArray *)filenames
{
- [self.mainController openFile:[NSURL fileURLWithPath:filenames.firstObject]];
+ [self.mainController openURL:[NSURL fileURLWithPath:filenames.firstObject]];
[NSApp replyToOpenOrPrint:NSApplicationDelegateReplySuccess];
}
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];
+ }
}
}