aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMCopyTable.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CMCopyTable.m')
-rw-r--r--Source/CMCopyTable.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CMCopyTable.m b/Source/CMCopyTable.m
index c0a415d5..3a227bd2 100644
--- a/Source/CMCopyTable.m
+++ b/Source/CMCopyTable.m
@@ -24,6 +24,7 @@
#import "CMCopyTable.h"
+int MENU_EDIT_COPY_WITH_COLUMN = 2001;
@implementation CMCopyTable
@@ -32,7 +33,7 @@
NSString *tmp = nil;
BOOL withHeaders = NO;
- if([[sender title] isEqualToString:@"Copy with Column Names"]) {
+ if([sender tag] == MENU_EDIT_COPY_WITH_COLUMN) {
withHeaders = YES;
}
@@ -60,7 +61,7 @@
- (BOOL)validateMenuItem:(NSMenuItem*)anItem
{
int row = [self selectedRow];
- if ( [[anItem title] isEqualToString:@"Copy"] || [[anItem title] isEqualToString:@"Copy with Column Names"] )
+ if ( [[anItem title] isEqualToString:@"Copy"] || [anItem tag] == MENU_EDIT_COPY_WITH_COLUMN )
{
if (row < 0 )
{