From 48a311eb9096cf7680a91fc7906c0487fce33473 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Mon, 31 Mar 2014 15:27:35 +0200 Subject: Fixed string literal warning --- MASShortcutView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MASShortcutView.m b/MASShortcutView.m index ba28e47..9f1b7f4 100644 --- a/MASShortcutView.m +++ b/MASShortcutView.m @@ -380,9 +380,9 @@ void *kUserDataHint = &kUserDataHint; [weakSelf activateEventMonitoring:NO]; NSString *format = NSLocalizedString(@"The key combination %@ cannot be used", @"Title for alert when shortcut is already used"); - NSRunCriticalAlertPanel([NSString stringWithFormat:format, shortcut], error.localizedDescription, + NSRunCriticalAlertPanel([NSString stringWithFormat:format, shortcut], @"%@", NSLocalizedString(@"OK", @"Alert button when shortcut is already used"), - nil, nil); + nil, nil, error.localizedDescription); weakSelf.shortcutPlaceholder = nil; [weakSelf activateResignObserver:YES]; [weakSelf activateEventMonitoring:YES]; -- cgit v1.2.3