From ecf0466bb04b6a8d1b68b9dbd7b6ada947097a67 Mon Sep 17 00:00:00 2001 From: Rob McBroom Date: Fri, 9 Dec 2016 09:39:59 -0500 Subject: [PATCH] allow panel to work with one button --- Quicksilver/Code-QuickStepCore/QSAlertManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Quicksilver/Code-QuickStepCore/QSAlertManager.m b/Quicksilver/Code-QuickStepCore/QSAlertManager.m index d5eaf41c2..262529bea 100644 --- a/Quicksilver/Code-QuickStepCore/QSAlertManager.m +++ b/Quicksilver/Code-QuickStepCore/QSAlertManager.m @@ -114,7 +114,7 @@ - (QSAlertResponse)runAlert:(NSAlert *)alert onWindow:(NSWindow *)window { - (QSAlertResponse)runAlertWithTitle:(NSString *)title message:(NSString *)message buttons:(NSArray *)buttons style:(NSAlertStyle)style attachToWindow:(NSWindow *)window { NSParameterAssert(title != nil); NSParameterAssert(buttons != nil); - NSAssert(buttons.count > 1, @"Must have at least one button"); + NSAssert(buttons.count >= 1, @"Must have at least one button"); // Configure the alert NSAlert *alert = [[NSAlert alloc] init];