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 4ad2e844c29ea8f6c90d957d4ee2e20c13c4b492
Showing with 2 additions and 1 deletion.
  1. +2 −1 Source/SPAboutController.m
@@ -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.
You can’t perform that action at this time.