From d5168baf1cec01f5d45f27c47a1b9746d8838afc Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 17 Dec 2010 10:50:35 +0000 Subject: =?UTF-8?q?=E2=80=A2=20allow=20to=20some=20sequelpro=20URL=20schem?= =?UTF-8?q?e=20commands=20like=20select=20a=20table/db=20the=20usage=20wit?= =?UTF-8?q?hout=20a=20specific=20SP=5FPROCESS=5FID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPAppController.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Source/SPAppController.m') diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 175df14c..a90876fa 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -659,6 +659,10 @@ } } + if(!processDocument) + processDocument = [[[self frontDocumentWindow] delegate] selectedTableDocument]; + + BOOL userTerminated = NO; // while(1) { @@ -688,7 +692,7 @@ if([command isEqualToString:@"passToDoc"]) { NSMutableDictionary *cmdDict = [NSMutableDictionary dictionary]; [cmdDict setObject:parameter forKey:@"parameter"]; - [cmdDict setObject:passedProcessID forKey:@"id"]; + [cmdDict setObject:(passedProcessID)?:@"" forKey:@"id"]; [processDocument handleSchemeCommand:cmdDict]; return; } -- cgit v1.2.3