diff options
author | Damiano Galassi <[email protected]> | 2015-10-28 08:15:52 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2015-10-28 08:15:52 +0100 |
commit | 89c0a25d548575ac2ad9e867fa0f506fed7ad625 (patch) | |
tree | 6ae99c75b0558cb04af6842ea8b5b53bdac5c0aa /macosx/HBSubtitlesDefaultsController.m | |
parent | 5adcef6070a6b8f91a92d2c22e5449dab3b15a34 (diff) |
MacGui: annotate the type of some arrays, and check the count of the input jobs in HBQueueController addJobsFromArray:, so we don't add an empty undo command.
Diffstat (limited to 'macosx/HBSubtitlesDefaultsController.m')
-rw-r--r-- | macosx/HBSubtitlesDefaultsController.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/HBSubtitlesDefaultsController.m b/macosx/HBSubtitlesDefaultsController.m index 678ceb204..a78a14b48 100644 --- a/macosx/HBSubtitlesDefaultsController.m +++ b/macosx/HBSubtitlesDefaultsController.m @@ -8,7 +8,7 @@ #import "HBSubtitlesDefaults.h" #import "HBLanguagesSelection.h" -static void *HBSubtitlesDefaultsContex = &HBSubtitlesDefaultsContex; +static void *HBSubtitlesDefaultsContext = &HBSubtitlesDefaultsContext; @interface HBSubtitlesDefaultsController () @@ -36,7 +36,7 @@ static void *HBSubtitlesDefaultsContex = &HBSubtitlesDefaultsContex; - (void)windowDidLoad { - [self addObserver:self forKeyPath:@"tableController.showSelectedOnly" options:0 context:HBSubtitlesDefaultsContex]; + [self addObserver:self forKeyPath:@"tableController.showSelectedOnly" options:0 context:HBSubtitlesDefaultsContext]; if (self.settings.trackSelectionLanguages.count) { @@ -46,7 +46,7 @@ static void *HBSubtitlesDefaultsContex = &HBSubtitlesDefaultsContex; - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { - if (context == HBSubtitlesDefaultsContex) + if (context == HBSubtitlesDefaultsContext) { if ([keyPath isEqualToString:@"tableController.showSelectedOnly"]) { @@ -77,7 +77,7 @@ static void *HBSubtitlesDefaultsContex = &HBSubtitlesDefaultsContex; - (void)dealloc { @try { - [self removeObserver:self forKeyPath:@"tableController.showSelectedOnly"]; + [self removeObserver:self forKeyPath:@"tableController.showSelectedOnly" context:HBSubtitlesDefaultsContext]; } @catch (NSException * __unused exception) {} } |