diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-12-17 10:50:35 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-12-17 10:50:35 +0000 |
commit | d5168baf1cec01f5d45f27c47a1b9746d8838afc (patch) | |
tree | 1e719830598bdcd92737b482ab2b673fc25b92cb /Source/SPAppController.m | |
parent | add2eb659aae82a187e8b51e19af9a201f08a1ca (diff) | |
download | sequelpro-d5168baf1cec01f5d45f27c47a1b9746d8838afc.tar.gz sequelpro-d5168baf1cec01f5d45f27c47a1b9746d8838afc.tar.bz2 sequelpro-d5168baf1cec01f5d45f27c47a1b9746d8838afc.zip |
• allow to some sequelpro URL scheme commands like select a table/db the usage without a specific SP_PROCESS_ID
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r-- | Source/SPAppController.m | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |