From 6b05fd32d2de17ee107ae675692e6076ad59e435 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 12 Jan 2010 19:07:03 +0000 Subject: =?UTF-8?q?=E2=80=A2=20If=20TableDocument=20is=20performing=20a=20?= =?UTF-8?q?task=20suppress=20any=20context=20menu=20in=20SPTableViews=20to?= =?UTF-8?q?=20prevent=20unstable=20circumstances?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPTableView.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/SPTableView.m b/Source/SPTableView.m index 982c3f42..753996fb 100644 --- a/Source/SPTableView.m +++ b/Source/SPTableView.m @@ -25,6 +25,7 @@ #import "SPTableView.h" #import "SPQueryFavoriteManager.h" #import "SPArrayAdditions.h" +#import "TableDocument.h" #import "SPConstants.h" @implementation SPTableView @@ -35,6 +36,11 @@ */ - (NSMenu *)menuForEvent:(NSEvent *)event { + + // If TableDocument is performing a task suppress any context menu + if([[[self window] delegate] isWorking]) + return nil; + // If more than one row is selected only returns the default contextual menu if([self numberOfSelectedRows] > 1) return [self menu]; -- cgit v1.2.3