diff options
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 49f30030..a5dc87b4 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -940,8 +940,9 @@ if (![tablesListInstance selectionShouldChangeInTableView:nil]) return; [databaseCopyNameField setStringValue:@""]; + [copyDatabaseMessageField setStringValue:[NSString stringWithFormat:NSLocalizedString(@"Duplicate database '%@' to:", @"duplicate database message"), selectedDatabase]]; - [NSApp beginSheet:databaseNewSheet + [NSApp beginSheet:databaseCopySheet modalForWindow:tableWindow modalDelegate:self didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:) @@ -955,7 +956,8 @@ { if (![tablesListInstance selectionShouldChangeInTableView:nil]) return; - [databaseRenameNameField setStringValue:@""]; + [databaseRenameNameField setStringValue:selectedDatabase]; + [renameDatabaseMessageField setStringValue:[NSString stringWithFormat:NSLocalizedString(@"Rename database '%@' to:", @"rename database message"), selectedDatabase]]; [NSApp beginSheet:databaseRenameSheet modalForWindow:tableWindow @@ -4158,7 +4160,7 @@ [dbActionCopy setConnection: [self getConnection]]; [dbActionCopy setMessageWindow: tableWindow]; - BOOL copyWithContent = [copyOnlyStructureButton state] == NSOffState; + BOOL copyWithContent = [copyDatabaseDataButton state] == NSOnState; if ([dbActionCopy copyDatabaseFrom: [self database] to: [databaseCopyNameField stringValue] |