diff options
Diffstat (limited to 'Source/SPWindowAdditions.m')
-rw-r--r-- | Source/SPWindowAdditions.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPWindowAdditions.m b/Source/SPWindowAdditions.m index 9cec1a7c..6966b311 100644 --- a/Source/SPWindowAdditions.m +++ b/Source/SPWindowAdditions.m @@ -82,9 +82,9 @@ */ - (void)swipeWithEvent:(NSEvent *)event { - if (![[self delegate] isKindOfClass:[SPWindowController class]] || ![[[self delegate] documents] count]) return; + if (![[self delegate] isKindOfClass:[SPWindowController class]] || ![[(SPWindowController *)[self delegate] documents] count]) return; - id frontDoc = [[self delegate] selectedTableDocument]; + id frontDoc = [(SPWindowController *)[self delegate] selectedTableDocument]; if (frontDoc && [frontDoc isKindOfClass:[SPDatabaseDocument class]] && [frontDoc valueForKeyPath:@"spHistoryControllerInstance"] && ![frontDoc isWorking]) { |