Skip to content

Commit

Permalink
Merge pull request #2296 from quicksilver/assert
Browse files Browse the repository at this point in the history
allow alert panel to work with one button
  • Loading branch information
skurfer committed Dec 13, 2016
2 parents 93e95c6 + ecf0466 commit a3c4146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Quicksilver/Code-QuickStepCore/QSAlertManager.m
Expand Up @@ -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];
Expand Down

0 comments on commit a3c4146

Please sign in to comment.