aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPBundleCommandRunner.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPBundleCommandRunner.m')
-rw-r--r--Source/SPBundleCommandRunner.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPBundleCommandRunner.m b/Source/SPBundleCommandRunner.m
index 5dd0878a..84ef4dc8 100644
--- a/Source/SPBundleCommandRunner.m
+++ b/Source/SPBundleCommandRunner.m
@@ -160,7 +160,7 @@
// Furthermore this id is used to communicate with the called command as file name.
id doc = nil;
if([[[NSApp mainWindow] delegate] respondsToSelector:@selector(selectedTableDocument)])
- doc = [[[NSApp mainWindow] delegate] selectedTableDocument];
+ doc = [(SPWindowController *)[[NSApp mainWindow] delegate] selectedTableDocument];
// Check if connected
if([doc getConnection] == nil)
doc = nil;