Skip to content

Commit

Permalink
Perfom duplicate table name validation on suggested name.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuconnolly committed Oct 8, 2018
1 parent 7c114b8 commit e9de90c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/SPTablesList.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -600,6 +600,8 @@ - (IBAction)copyTable:(id)sender
[copyTableMessageField setStringValue:[NSString stringWithFormat:NSLocalizedString(@"Duplicate %@ '%@' to:", @"duplicate object message"), tableType, [self tableName]]]; [copyTableMessageField setStringValue:[NSString stringWithFormat:NSLocalizedString(@"Duplicate %@ '%@' to:", @"duplicate object message"), tableType, [self tableName]]];
[copyTableNameField setStringValue:[NSString stringWithFormat:@"%@_copy", [filteredTables objectAtIndex:[tablesListView selectedRow]]]]; [copyTableNameField setStringValue:[NSString stringWithFormat:@"%@_copy", [filteredTables objectAtIndex:[tablesListView selectedRow]]]];


[copyTableButton setEnabled:[self isTableNameValid:[copyTableNameField stringValue] forType:[self tableType]]];

[NSApp beginSheet:copyTableSheet [NSApp beginSheet:copyTableSheet
modalForWindow:[tableDocumentInstance parentWindow] modalForWindow:[tableDocumentInstance parentWindow]
modalDelegate:self modalDelegate:self
Expand Down

0 comments on commit e9de90c

Please sign in to comment.