aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-12-17 10:50:35 +0000
committerBibiko <bibiko@eva.mpg.de>2010-12-17 10:50:35 +0000
commitd5168baf1cec01f5d45f27c47a1b9746d8838afc (patch)
tree1e719830598bdcd92737b482ab2b673fc25b92cb /Source/SPAppController.m
parentadd2eb659aae82a187e8b51e19af9a201f08a1ca (diff)
downloadsequelpro-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.m6
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;
}