From 3b70bf3ed475602fac435b86ab564423ae1dfdb0 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 24 Mar 2010 21:51:27 +0000 Subject: General tidy up, with a focus on consolidating more constants in SPConstants.h/m. --- Source/SPAboutController.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/SPAboutController.m') diff --git a/Source/SPAboutController.m b/Source/SPAboutController.m index 4e5c94f9..0e0e7a09 100644 --- a/Source/SPAboutController.m +++ b/Source/SPAboutController.m @@ -40,11 +40,10 @@ */ - (void)awakeFromNib { - BOOL isNightly = NO; NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]; // If the version string has a prefix of 'Nightly' then this is obviously a nighly build. - if ([version hasPrefix:@"Nightly"]) isNightly = YES; + BOOL isNightly = [version hasPrefix:@"Nightly"]; // Set the application name, but only include the major version if this is not a nightly build. [appNameVersionTextField setStringValue:(isNightly) ? @"Sequel Pro" : [NSString stringWithFormat:@"Sequel Pro %@", version]]; -- cgit v1.2.3