From 438ffd01fdc4615aab516394d7eb422f7ca3af3f Mon Sep 17 00:00:00 2001 From: ritsuka Date: Wed, 22 Jul 2015 11:38:23 +0000 Subject: [PATCH] MacGui: do not let an instance edit a job that another instance is currently encoding. Fix the "Stop encoding" menu item key equivalent. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7359 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/English.lproj/Queue.xib | 14 +++++++------- macosx/HBQueueController.m | 4 +--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/macosx/English.lproj/Queue.xib b/macosx/English.lproj/Queue.xib index 96598ec01..6ed8f9109 100644 --- a/macosx/English.lproj/Queue.xib +++ b/macosx/English.lproj/Queue.xib @@ -167,20 +167,20 @@ - + - + - + + - + - - + @@ -207,7 +207,7 @@ - + diff --git a/macosx/HBQueueController.m b/macosx/HBQueueController.m index e97f7162c..d43c43d70 100644 --- a/macosx/HBQueueController.m +++ b/macosx/HBQueueController.m @@ -113,14 +113,12 @@ if (self.core.state == HBStateIdle) { menuItem.title = NSLocalizedString(@"Start Encoding", nil); - menuItem.keyEquivalent = @"s"; return (self.pendingItemsCount > 0); } else if (self.core.state != HBStateIdle) { menuItem.title = NSLocalizedString(@"Stop Encoding", nil); - menuItem.keyEquivalent = @"."; return YES; } @@ -1015,7 +1013,7 @@ didEndSelector:@selector(didDimissEditCurrentJob:returnCode:contextInfo:) contextInfo:(__bridge void *)(job)]; } - else + else if (job.state != HBJobStateWorking) { // since we are not a currently encoding item, we can just be edit it HBJob *item = [[self.jobs[row] representedObject] copy]; -- 2.40.0