From 7b8d1a80de102fd0ed4a3f68547d499e66e2595c Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 1 Jun 2010 21:59:37 +0000 Subject: - Fix opening of .spfs on application launch or if no windows are open --- Source/SPAppController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') 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]; -- cgit v1.2.3