diff options
author | Damiano Galassi <[email protected]> | 2018-06-09 10:26:57 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2018-06-09 10:26:57 +0200 |
commit | a9977ba65de8c671924d60cdd7abb2597032cd5e (patch) | |
tree | ae1b80cdc08badd1b5cf43d98541dc9cf55389e0 /macosx/HBPresetsViewController.m | |
parent | 041d228b23f622ee86a528f8c667e048503c226e (diff) |
Fix: fix another deprecation warning and add a missing alloc message.
Diffstat (limited to 'macosx/HBPresetsViewController.m')
-rw-r--r-- | macosx/HBPresetsViewController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/HBPresetsViewController.m b/macosx/HBPresetsViewController.m index 1f9ba0c8b..d2a22b378 100644 --- a/macosx/HBPresetsViewController.m +++ b/macosx/HBPresetsViewController.m @@ -257,7 +257,7 @@ static void *HBPresetsViewControllerContext = &HBPresetsViewControllerContext; if ([self.treeController canRemove]) { // Alert user before deleting preset - NSAlert *alert = [NSAlert init]; + NSAlert *alert = [[NSAlert alloc] init]; alert.messageText = NSLocalizedString(@"Are you sure you want to permanently delete the selected preset?", @"Delete preset alert -> message"); alert.informativeText = NSLocalizedString(@"You can't undo this action.", @"Delete preset alert -> informative text"); [alert addButtonWithTitle:NSLocalizedString(@"Delete Preset", @"Delete preset alert -> first button")]; |