Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use cancel as default in remove all pinyin nick alert sheet.

  • Loading branch information...
commit 425b3944b3074e6a90750d4f4248fbe2c9f68181 1 parent b131824
@cyfdecyf authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 PinYinNick/PYNickAppDelegate.m
View
7 PinYinNick/PYNickAppDelegate.m
@@ -161,7 +161,8 @@ - (IBAction)saveModifiedContact:(id)sender {
}
- (void)removeNickAlertEnded:(NSAlert *)alert code:(NSInteger)choice context:(void *)v {
- if (choice != NSAlertDefaultReturn) {
+ // Default is cancel.
+ if (choice == NSAlertDefaultReturn) {
return;
}
NSUndoManager *undo = [_window undoManager];
@@ -184,8 +185,8 @@ - (void)removeNickAlertEnded:(NSAlert *)alert code:(NSInteger)choice context:(vo
- (IBAction)removeAllPinyinNickNames:(id)sender {
NSAlert *alert = [NSAlert alertWithMessageText:LocalizedString(@"REMOVE_ALERT_MSG", @"Remove all pinyin nick names")
- defaultButton:LocalizedString(@"REMOVE", @"Remove")
- alternateButton:LocalizedString(@"CANCEL", @"Cancel")
+ defaultButton:LocalizedString(@"CANCEL", @"Cancel")
+ alternateButton:LocalizedString(@"REMOVE", @"Remove")
otherButton:nil
informativeTextWithFormat:LocalizedString(@"REMOVE_ALERT_INFO", @"Nick names associated with contacts which have Chinese characters will be deleted!")];
[alert beginSheetModalForWindow:_window
Please sign in to comment.
Something went wrong with that request. Please try again.