diff options
-rw-r--r-- | macosx/HBController.m | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m index a1d1b2a43..f083b2d6a 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -347,31 +347,23 @@ [toolbarItem setPaletteLabel: @"Start Encoding"]; [toolbarItem setToolTip: @"Start Encoding"]; } - } - if (self.job) - { - if (action == @selector(showPicturePanel:) || - action == @selector(showPreviewWindow:) || - action == @selector(addToQueue:)) + if (action == @selector(rip:)) { - return YES; + return (self.job != nil || fQueueController.pendingItemsCount > 0); } - } - else - { - if (action == @selector(showPicturePanel:) || - action == @selector(showPreviewWindow:) || - action == @selector(addToQueue:)) + + if (action == @selector(pause:)) { return NO; } } - // If there are any pending queue items, make sure the start/stop button is active. - if (action == @selector(rip:) && (fQueueController.pendingItemsCount > 0 || self.job)) + if (action == @selector(showPicturePanel:) || + action == @selector(showPreviewWindow:) || + action == @selector(addToQueue:)) { - return YES; + return (self.job != nil); } return YES; |