Skip to content

Commit

Permalink
Fix an exception when removing custom content filters via the outline…
Browse files Browse the repository at this point in the history
… view’s context menu (#2733)
  • Loading branch information
dmoagx committed Mar 15, 2017
1 parent 95250e0 commit fdec26e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/SPContentFilterManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ - (IBAction)addContentFilter:(id)sender
NSUInteger insertIndex;

// Store pending changes in Clause
[[self window] makeFirstResponder:contentFilterNameTextField];
[[self window] makeFirstResponder:nil];

// Duplicate a selected filter if sender == self
if(sender == self)
Expand Down Expand Up @@ -298,7 +298,7 @@ - (IBAction)removeContentFilter:(id)sender
{

// Complete editing in the window
[[sender window] makeFirstResponder:[sender window]];
[[self window] makeFirstResponder:nil];

NSAlert *alert = [NSAlert alertWithMessageText:NSLocalizedString(@"Remove selected content filters?", @"remove selected content filters message")
defaultButton:NSLocalizedString(@"Remove", @"remove button")
Expand Down

0 comments on commit fdec26e

Please sign in to comment.