aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-05-09 15:19:40 +0000
committerstuconnolly <stuart02@gmail.com>2012-05-09 15:19:40 +0000
commitafbd3852fa962b3b4399b83ba33295c7621d04a8 (patch)
tree85644bdcb5091955483e67e88308e5c535bb6248 /Source/SPAppController.m
parent9131db394c46f10260fcec1a1df5216b140e2bc2 (diff)
downloadsequelpro-afbd3852fa962b3b4399b83ba33295c7621d04a8.tar.gz
sequelpro-afbd3852fa962b3b4399b83ba33295c7621d04a8.tar.bz2
sequelpro-afbd3852fa962b3b4399b83ba33295c7621d04a8.zip
Fix more gcc warnings.
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r--Source/SPAppController.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index 2c03ddf4..87a97f19 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -1671,11 +1671,13 @@ YY_BUFFER_STATE yy_scan_string (const char *);
NSData *dData = [NSData dataWithContentsOfFile:duplicatedBundleCommand options:NSUncachedRead error:&readError1];
[dupData setDictionary:[NSPropertyListSerialization propertyListFromData:dData
mutabilityOption:NSPropertyListImmutable format:&format errorDescription:&convError1]];
- if(!dupData && ![dupData count] || readError1 != nil || [convError1 length] || !(format == NSPropertyListXMLFormat_v1_0 || format == NSPropertyListBinaryFormat_v1_0)) {
+
+ if ((!dupData && ![dupData count]) || (readError1 != nil || [convError1 length] || !(format == NSPropertyListXMLFormat_v1_0 || format == NSPropertyListBinaryFormat_v1_0))) {
NSLog(@"“%@” file couldn't be read.", duplicatedBundleCommand);
NSBeep();
continue;
}
+
[dupData setObject:[NSString stringWithNewUUID] forKey:SPBundleFileUUIDKey];
NSString *orgName = [dupData objectForKey:SPBundleFileNameKey];
[dupData setObject:[NSString stringWithFormat:@"%@ (user)", orgName] forKey:SPBundleFileNameKey];