Permalink
Browse files

Perfom duplicate table name validation on suggested name.

  • Loading branch information...
stuconnolly committed Oct 8, 2018
1 parent 7c114b8 commit e9de90cefd0c564bbf4d1c0481fd6e9d63ac7c14
Showing with 2 additions and 0 deletions.
  1. +2 −0 Source/SPTablesList.m
View
@@ -600,6 +600,8 @@ - (IBAction)copyTable:(id)sender
[copyTableMessageField setStringValue:[NSString stringWithFormat:NSLocalizedString(@"Duplicate %@ '%@' to:", @"duplicate object message"), tableType, [self tableName]]];
[copyTableNameField setStringValue:[NSString stringWithFormat:@"%@_copy", [filteredTables objectAtIndex:[tablesListView selectedRow]]]];
[copyTableButton setEnabled:[self isTableNameValid:[copyTableNameField stringValue] forType:[self tableType]]];
[NSApp beginSheet:copyTableSheet
modalForWindow:[tableDocumentInstance parentWindow]
modalDelegate:self

0 comments on commit e9de90c

Please sign in to comment.