From 800d4b17b5f7031c56984dc57f4aacd6a5256562 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Tue, 27 Oct 2009 14:28:13 +0000 Subject: Change the order of the cancel/remove buttons on the remove field dialog. --- Source/TableSource.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/TableSource.m') diff --git a/Source/TableSource.m b/Source/TableSource.m index 77e05efb..73e9c9b3 100644 --- a/Source/TableSource.m +++ b/Source/TableSource.m @@ -393,8 +393,8 @@ reloads the table (performing a new mysql-query) } NSAlert *alert = [NSAlert alertWithMessageText:NSLocalizedString(@"Delete field?", @"delete field message") - defaultButton:NSLocalizedString(@"Cancel", @"cancel button") - alternateButton:NSLocalizedString(@"Delete", @"delete button") + defaultButton:NSLocalizedString(@"Delete", @"delete button") + alternateButton:NSLocalizedString(@"Cancel", @"cancel button") otherButton:nil informativeTextWithFormat:[NSString stringWithFormat:NSLocalizedString(@"Are you sure you want to delete the field '%@'? This action cannot be undone.", @"delete field informative message"), [[tableFields objectAtIndex:[tableSourceView selectedRow]] objectForKey:@"Field"]]]; @@ -885,7 +885,7 @@ fetches the result as an array with a dictionary for each row in it } [tableSourceView reloadData]; } else if ( [contextInfo isEqualToString:@"removefield"] ) { - if ( returnCode == NSAlertAlternateReturn ) { + if ( returnCode == NSAlertDefaultReturn ) { //remove row [mySQLConnection queryString:[NSString stringWithFormat:@"ALTER TABLE %@ DROP %@", [selectedTable backtickQuotedString], [[[tableFields objectAtIndex:[tableSourceView selectedRow]] objectForKey:@"Field"] backtickQuotedString]]]; -- cgit v1.2.3