]> granicus.if.org Git - handbrake/commitdiff
MacGui: fix file menu validation. Closes #2200.
authorDamiano Galassi <damiog@gmail.com>
Sat, 20 Jul 2019 16:00:58 +0000 (18:00 +0200)
committerDamiano Galassi <damiog@gmail.com>
Sat, 20 Jul 2019 16:00:58 +0000 (18:00 +0200)
macosx/HBController.m

index d353a1c1d76925aa4fb82f82a9b9212642f4f26c..dcfefb8d67fac3211d83d124d8df948b4b6897c9 100644 (file)
@@ -535,11 +535,11 @@ static void *HBControllerQueueCoreContext = &HBControllerQueueCoreContext;
     }
     if (action == @selector(togglePauseResume:))
     {
-        return [_queue validateMenuItem:menuItem];
+        return [self.delegate validateMenuItem:menuItem];
     }
     if (action == @selector(toggleStartCancel:))
     {
-        BOOL result = [_queue validateMenuItem:menuItem];
+        BOOL result = [self.delegate validateMenuItem:menuItem];
 
         if ([menuItem.title isEqualToString:NSLocalizedString(@"Start Encoding", @"Menu Start/Stop Item")])
         {