diff options
author | ritsuka <[email protected]> | 2014-12-28 08:14:32 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-12-28 08:14:32 +0000 |
commit | a03845e869297931544d4d8ba5a15678411df155 (patch) | |
tree | 020a76f4d45e2375f5fd61d5f083f51cb0176552 /macosx/HBRange.m | |
parent | 3acda4f9eb6a6c23f0a9c627aba354433656f70d (diff) |
MacGui: move more things out of HBController.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6664 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBRange.m')
-rw-r--r-- | macosx/HBRange.m | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/macosx/HBRange.m b/macosx/HBRange.m index 83df24b66..b632d4c34 100644 --- a/macosx/HBRange.m +++ b/macosx/HBRange.m @@ -31,6 +31,26 @@ return self; } +- (void)setChapterStart:(int)chapterStart +{ + if (chapterStart > self.chapterStop) + { + self.chapterStop = chapterStart; + } + + _chapterStart = chapterStart; +} + +- (void)setChapterStop:(int)chapterStop +{ + if (chapterStop < self.chapterStart) + { + self.chapterStart = chapterStop; + } + + _chapterStop = chapterStop; +} + - (NSString *)duration { if (self.type == HBRangeTypeChapters) |