aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-11-09 23:36:40 +0000
committerstuconnolly <stuart02@gmail.com>2009-11-09 23:36:40 +0000
commit171a50a5aa737d2bf096cea931107f9978771edb (patch)
treeec9af0874ce8bdac4ca341ae08aa5da90c8300e3 /Source
parentac20f58238c674028c12eb8db7942bb11fc6659b (diff)
downloadsequelpro-171a50a5aa737d2bf096cea931107f9978771edb.tar.gz
sequelpro-171a50a5aa737d2bf096cea931107f9978771edb.tar.bz2
sequelpro-171a50a5aa737d2bf096cea931107f9978771edb.zip
Switch buttons on delete index dialog.
Diffstat (limited to 'Source')
-rw-r--r--Source/TableSource.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/TableSource.m b/Source/TableSource.m
index 4085b032..f09ff64b 100644
--- a/Source/TableSource.m
+++ b/Source/TableSource.m
@@ -377,8 +377,8 @@ reloads the table (performing a new mysql-query)
NSString *keyName = [[indexes objectAtIndex:[indexView selectedRow]] objectForKey:@"Key_name"];
NSAlert *alert = [NSAlert alertWithMessageText:[NSString stringWithFormat:NSLocalizedString(@"Delete index '%@'?", @"delete index message"), keyName]
- 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 index '%@'? This action cannot be undone.", @"delete index informative message"), keyName]];
@@ -918,7 +918,7 @@ fetches the result as an array with a dictionary for each row in it
}
}
else if ([contextInfo isEqualToString:@"removeIndex"]) {
- if (returnCode == NSAlertAlternateReturn) {
+ if (returnCode == NSAlertDefaultReturn) {
[self _removeIndex];
}
}