Permalink
Browse files

Now that was some silly code… (part of #2811)

  • Loading branch information...
dmoagx committed Jun 5, 2017
1 parent c83f7b1 commit 50e309bc30a10158762b5cf528d67123462dc3a0
Showing with 4 additions and 1 deletion.
  1. +4 −1 Source/SPIndexesController.m
@@ -264,12 +264,15 @@ - (IBAction)removeIndex:(id)sender
}
}
}
NSString *info = hasForeignKey ? [NSString stringWithFormat:NSLocalizedString(@"The foreign key relationship '%@' has a dependency on this index. This relationship must be removed before the index can be deleted.\n\nAre you sure you want to continue to delete the relationship and the index? This action cannot be undone.", @"delete index and foreign key informative message"), constraintName]
: [NSString stringWithFormat:NSLocalizedString(@"Are you sure you want to delete the index '%@'? This action cannot be undone.", @"delete index informative message"), keyName];
NSAlert *alert = [NSAlert alertWithMessageText:[NSString stringWithFormat:NSLocalizedString(@"Delete index '%@'?", @"delete index message"), keyName]
defaultButton:NSLocalizedString(@"Delete", @"delete button")
alternateButton:NSLocalizedString(@"Cancel", @"cancel button")
otherButton:nil
informativeTextWithFormat:hasForeignKey ? NSLocalizedString(@"The foreign key relationship '%@' has a dependency on this index. This relationship must be removed before the index can be deleted.\n\nAre you sure you want to continue to delete the relationship and the index? This action cannot be undone.", @"delete index and foreign key informative message"), constraintName : NSLocalizedString(@"Are you sure you want to delete the index '%@'? This action cannot be undone.", @"delete index informative message"), keyName];
informativeTextWithFormat:@"%@", info];
[alert setAlertStyle:NSCriticalAlertStyle];

0 comments on commit 50e309b

Please sign in to comment.