Permalink
Browse files

Fix an exception when removing custom content filters via the outline…

… view’s context menu (#2733)
  • Loading branch information...
dmoagx committed Mar 15, 2017
1 parent 95250e0 commit fdec26ea42ad4c89ff33d5e902af471bc8112d9b
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/SPContentFilterManager.m
@@ -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)
@@ -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")

0 comments on commit fdec26e

Please sign in to comment.