summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-11-30 16:53:20 +0100
committerDamiano Galassi <[email protected]>2017-11-30 16:53:20 +0100
commit357f922f4bf47cc130bc2cd935b04acda931818f (patch)
treefdd4b09956d5a2bdeedbedc21610e4fd784eb331 /macosx
parentb93c4fb4f10e63ad5ba202de75056452f22af7da (diff)
MacGui: fix an summary tab exception on older versions of macOS.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBSummaryViewController.m17
1 files changed, 10 insertions, 7 deletions
diff --git a/macosx/HBSummaryViewController.m b/macosx/HBSummaryViewController.m
index 88dc18534..e16f26e87 100644
--- a/macosx/HBSummaryViewController.m
+++ b/macosx/HBSummaryViewController.m
@@ -125,15 +125,18 @@ static void *HBSummaryViewControllerSubsContext = &HBSummaryViewControllerSubsCo
}
[self updateTracks:nil];
}
- else if (context == HBSummaryViewControllerContainerContext && NSAppKitVersionNumber >= NSAppKitVersionNumber10_10 && change[NSKeyValueChangeNewKey])
+ else if (context == HBSummaryViewControllerContainerContext)
{
- if ([change[NSKeyValueChangeNewKey] integerValue] & 0x030000)
+ if (NSAppKitVersionNumber >= NSAppKitVersionNumber10_10 && change[NSKeyValueChangeNewKey])
{
- self.bottomOptionsConstrain.active = YES;
- }
- else
- {
- self.bottomOptionsConstrain.active = NO;
+ if ([change[NSKeyValueChangeNewKey] integerValue] & 0x030000)
+ {
+ self.bottomOptionsConstrain.active = YES;
+ }
+ else
+ {
+ self.bottomOptionsConstrain.active = NO;
+ }
}
[self updateTracks:nil];
}