aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableSource.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-10-27 14:28:13 +0000
committerstuconnolly <stuart02@gmail.com>2009-10-27 14:28:13 +0000
commit800d4b17b5f7031c56984dc57f4aacd6a5256562 (patch)
tree8f7158e29c78f69c2c97cb9233c5d05e83a95259 /Source/TableSource.m
parentf90186c282f37878f9c80b41a478bcde4af74502 (diff)
downloadsequelpro-800d4b17b5f7031c56984dc57f4aacd6a5256562.tar.gz
sequelpro-800d4b17b5f7031c56984dc57f4aacd6a5256562.tar.bz2
sequelpro-800d4b17b5f7031c56984dc57f4aacd6a5256562.zip
Change the order of the cancel/remove buttons on the remove field dialog.
Diffstat (limited to 'Source/TableSource.m')
-rw-r--r--Source/TableSource.m6
1 files changed, 3 insertions, 3 deletions
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]]];