From 595d3c55bce3c2d2e594c274e53953b2526820c6 Mon Sep 17 00:00:00 2001 From: Tomáš Znamenáček Date: Wed, 7 Jan 2015 15:59:08 +0100 Subject: Fixed the alert that pops up when the shortcut is already used. The longer message text was used as the alert title. --- Framework/MASShortcutView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Framework/MASShortcutView.m b/Framework/MASShortcutView.m index 0ae8f6c..a449829 100644 --- a/Framework/MASShortcutView.m +++ b/Framework/MASShortcutView.m @@ -399,8 +399,8 @@ void *kUserDataHint = &kUserDataHint; @"Title for alert when shortcut is already used"); NSAlert* alert = [[NSAlert alloc]init]; alert.alertStyle = NSCriticalAlertStyle; - alert.informativeText = [NSString stringWithFormat:format, shortcut]; - alert.messageText = explanation; + alert.informativeText = explanation; + alert.messageText = [NSString stringWithFormat:format, shortcut]; [alert addButtonWithTitle:NSLocalizedString(@"OK", @"Alert button when shortcut is already used")]; [alert runModal]; -- cgit v1.2.3