summaryrefslogtreecommitdiffstats
path: root/macosx/HBVideoController.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-07-27 08:51:30 +0000
committerritsuka <[email protected]>2015-07-27 08:51:30 +0000
commitaa4f592e9a991144e1ecac601858eefbf12a853c (patch)
treecb599cf44204baccde988182beae546f86e22e52 /macosx/HBVideoController.m
parent0f53167a48fdb049021d0ea9128970c2a4e27e32 (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.m10
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