Skip to content

Commit 4ad2e84

Browse files
committed
Fix an exception when opening the „About“ window on OS X < 10.10
1 parent 8239d13 commit 4ad2e84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/SPAboutController.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ - (void)awakeFromNib
5858
NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
5959

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

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

0 commit comments

Comments
 (0)