From d77ef8c0d4526c44823216c219f0734639cad701 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 13 Oct 2009 13:04:47 +0000 Subject: =?UTF-8?q?=E2=80=A2=20cleaned=20the=20current=20Applescript=20sup?= =?UTF-8?q?port=20definitions=20slightly=20-=20removed=20unnecessary=20met?= =?UTF-8?q?hod=20'handleQuitScriptCommand'=20from=20SPAppController=20-=20?= =?UTF-8?q?set=20main=20class=20to=20SPAppController?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPAppController.m | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'Source/SPAppController.m') 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. -- cgit v1.2.3