diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/TableDocument.m | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 49bde88b..3875c0a3 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -4164,8 +4164,7 @@ if ([dbActionCopy copyDatabaseFrom: [self database] to: [databaseCopyNameField stringValue] withContent: copyWithContent]) { - [selectedDatabase release]; - selectedDatabase = [[NSString alloc] initWithString:[databaseCopyNameField stringValue]]; + [self selectDatabase:[databaseCopyNameField stringValue] item:nil]; } [dbActionCopy release]; [self setDatabases: self]; @@ -4182,8 +4181,7 @@ if ([dbActionRename renameDatabaseFrom: [self database] to: [databaseRenameNameField stringValue]]) { - [selectedDatabase release]; - selectedDatabase = [[NSString alloc] initWithString:[databaseRenameNameField stringValue]]; + [self selectDatabase:[databaseRenameNameField stringValue] item:nil]; } [dbActionRename release]; [self setDatabases: self]; |