diff options
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r-- | Source/SPAppController.m | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m index e329f796..09bca271 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -390,7 +390,7 @@ - (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender { TableDocument *firstTableDocument; - + // Manually open a new document, setting SPAppController as sender to trigger autoconnection if (firstTableDocument = [[NSDocumentController sharedDocumentController] makeUntitledDocumentOfType:@"SequelPro connection" error:nil]) { if ([[NSUserDefaults standardUserDefaults] boolForKey:@"AutoConnectToDefault"]) { @@ -478,17 +478,6 @@ return @""; } - - -/** - * AppleScript handler to quit Sequel Pro - */ -- (id)handleQuitScriptCommand:(NSScriptCommand *)command -{ - [NSApp terminate:self]; - return nil; -} - /** * Sparkle updater delegate method. Called just before the updater relaunches Sequel Pro and we need to make * sure that no sheets are currently open, which will prevent the app from being quit. |