aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-06-01 21:59:37 +0000
committerrowanbeentje <rowan@beent.je>2010-06-01 21:59:37 +0000
commit7b8d1a80de102fd0ed4a3f68547d499e66e2595c (patch)
treefc26bafa8939dc9698a318f3c1eb2d98ab4941f7
parenta2d64457e1c52d2d72863407537e950c80595231 (diff)
downloadsequelpro-7b8d1a80de102fd0ed4a3f68547d499e66e2595c.tar.gz
sequelpro-7b8d1a80de102fd0ed4a3f68547d499e66e2595c.tar.bz2
sequelpro-7b8d1a80de102fd0ed4a3f68547d499e66e2595c.zip
- Fix opening of .spfs on application launch or if no windows are open
-rw-r--r--Source/SPAppController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index ce1e78c8..d3cbb8fb 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -279,7 +279,7 @@
// If the frontmost document isn't connected and hasn't been, open the connection file with it.
// Otherwise, manually open a new document, setting SPAppController as sender to trigger autoconnection
- if ([[self frontDocument] mySQLVersion]) {
+ if (![self frontDocument] || [[self frontDocument] mySQLVersion]) {
[self newWindow:self];
}
[[self frontDocument] initWithConnectionFile:filename];