aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-12 19:07:03 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-12 19:07:03 +0000
commit6b05fd32d2de17ee107ae675692e6076ad59e435 (patch)
treecc6617f6ef56e6b569c3d6bd049aed65c0ac6c88 /Source
parent625538d64c9ab239175c614f20792f284c55514b (diff)
downloadsequelpro-6b05fd32d2de17ee107ae675692e6076ad59e435.tar.gz
sequelpro-6b05fd32d2de17ee107ae675692e6076ad59e435.tar.bz2
sequelpro-6b05fd32d2de17ee107ae675692e6076ad59e435.zip
• If TableDocument is performing a task suppress any context menu in SPTableViews to prevent unstable circumstances
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];