Skip to content

Commit

Permalink
Fix an exception when opening the „About“ window on OS X < 10.10
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoagx committed Apr 1, 2017
1 parent 8239d13 commit 4ad2e84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/SPAboutController.m
Expand Up @@ -58,7 +58,8 @@ - (void)awakeFromNib
NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];

// If the version string has a prefix of 'Nightly' then this is obviously a nighly build.
BOOL isSnapshotBuild = [version containsString:SPSnapshotBuildIndicator];
NSRange matchRange = [version rangeOfString:SPSnapshotBuildIndicator];
BOOL isSnapshotBuild = (matchRange.location != NSNotFound);

// Set the application name, but only include the major version if this is not a nightly build.
[appNameVersionTextField setStringValue:isSnapshotBuild ? @"Sequel Pro" : [NSString stringWithFormat:@"Sequel Pro %@", version]];
Expand Down

0 comments on commit 4ad2e84

Please sign in to comment.