diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPAppController.h | 3 | ||||
-rw-r--r-- | Source/SPAppController.m | 13 |
2 files changed, 1 insertions, 15 deletions
diff --git a/Source/SPAppController.h b/Source/SPAppController.h index f22cd1d5..473baa23 100644 --- a/Source/SPAppController.h +++ b/Source/SPAppController.h @@ -52,9 +52,6 @@ // Getters - (SPPreferenceController *)preferenceController; -// AppleScript handler -- (id)handleQuitScriptCommand:(NSScriptCommand *)command; - // Others - (NSString *)contentOfFile:(NSString *)aPath; 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. |