Skip to content
Permalink
Browse files
Perfom duplicate table name validation on suggested name.
  • Loading branch information
stuconnolly committed Oct 8, 2018
1 parent 7c114b8 commit e9de90c
Showing 1 changed file with 2 additions and 0 deletions.
@@ -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.