aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
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;
}