aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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];