aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPAboutController.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPAboutController.m b/Source/SPAboutController.m
index 0fa5a06c..712f311c 100644
--- a/Source/SPAboutController.m
+++ b/Source/SPAboutController.m
@@ -58,7 +58,8 @@ static NSString *SPShortVersionHashKey = @"SPVersionShortHash";
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]];