Skip to content

Commit e9de90c

Browse files
committed
Perfom duplicate table name validation on suggested name.
1 parent 7c114b8 commit e9de90c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: Source/SPTablesList.m

+2
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,8 @@ - (IBAction)copyTable:(id)sender
600600
[copyTableMessageField setStringValue:[NSString stringWithFormat:NSLocalizedString(@"Duplicate %@ '%@' to:", @"duplicate object message"), tableType, [self tableName]]];
601601
[copyTableNameField setStringValue:[NSString stringWithFormat:@"%@_copy", [filteredTables objectAtIndex:[tablesListView selectedRow]]]];
602602

603+
[copyTableButton setEnabled:[self isTableNameValid:[copyTableNameField stringValue] forType:[self tableType]]];
604+
603605
[NSApp beginSheet:copyTableSheet
604606
modalForWindow:[tableDocumentInstance parentWindow]
605607
modalDelegate:self

0 commit comments

Comments
 (0)