aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-03-01 21:09:08 +0000
committerstuconnolly <stuart02@gmail.com>2011-03-01 21:09:08 +0000
commit64919b03fa59c8d93c81a8e3893934c04a3cac91 (patch)
treea73f3db993975d4fb6963730450bae0655b12a09 /Source/SPDatabaseDocument.m
parentcd09dcd69813400b098b9f019a558efb11e6c8b2 (diff)
downloadsequelpro-64919b03fa59c8d93c81a8e3893934c04a3cac91.tar.gz
sequelpro-64919b03fa59c8d93c81a8e3893934c04a3cac91.tar.bz2
sequelpro-64919b03fa59c8d93c81a8e3893934c04a3cac91.zip
Fix compiler warnings.
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 93db6810..c2974353 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -2789,15 +2789,19 @@
[alert setAlertStyle:NSCriticalAlertStyle];
[alert runModal];
- return NO;
+
+ return;
}
NSError *error = nil;
+
[plist writeToFile:[NSString stringWithFormat:@"%@/info.plist", fileName] options:NSAtomicWrite error:&error];
+
if(error != nil){
NSAlert *errorAlert = [NSAlert alertWithError:error];
[errorAlert runModal];
- return NO;
+
+ return;
}
[[NSApp delegate] setSessionURL:fileName];