Skip to content
Browse files
Fix an exception when opening the „About“ window on OS X < 10.10
  • Loading branch information
dmoagx committed Apr 1, 2017
1 parent 8239d13 commit 4ad2e84
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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]];

0 comments on commit 4ad2e84

Please sign in to comment.