aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableView.m6
1 files changed, 6 insertions, 0 deletions
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];