diff options
author | ritsuka <[email protected]> | 2015-07-27 08:51:30 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-07-27 08:51:30 +0000 |
commit | aa4f592e9a991144e1ecac601858eefbf12a853c (patch) | |
tree | cb599cf44204baccde988182beae546f86e22e52 /macosx/HBVideoController.m | |
parent | 0f53167a48fdb049021d0ea9128970c2a4e27e32 (diff) |
MacGui: move the picture and filters settings to the main window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7379 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBVideoController.m')
-rw-r--r-- | macosx/HBVideoController.m | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/macosx/HBVideoController.m b/macosx/HBVideoController.m index f67a11025..8ade4da8b 100644 --- a/macosx/HBVideoController.m +++ b/macosx/HBVideoController.m @@ -37,7 +37,6 @@ static void *HBVideoControllerContext = &HBVideoControllerContext; } @property (nonatomic, strong, readwrite) HBAdvancedController *advancedController; -@property (nonatomic, readwrite, weak) HBVideo *video; @property (nonatomic, readwrite) BOOL presetViewEnabled; @@ -86,12 +85,11 @@ static void *HBVideoControllerContext = &HBVideoControllerContext; return self; } -- (void)setJob:(HBJob *)job +- (void)setVideo:(HBVideo *)video { - _job = job; - self.video = job.video; + _video = video; - if (job) + if (video) { self.labelColor = [NSColor controlTextColor]; } @@ -100,7 +98,7 @@ static void *HBVideoControllerContext = &HBVideoControllerContext; self.labelColor = [NSColor disabledControlTextColor]; } - [self enableEncoderOptionsWidgets:(job != nil)]; + [self enableEncoderOptionsWidgets:(video != nil)]; } #pragma mark - KVO |