aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2017-03-15 02:26:24 +0100
committerMax <post@wickenrode.com>2017-03-15 02:26:24 +0100
commitfdec26ea42ad4c89ff33d5e902af471bc8112d9b (patch)
treedbbc4529c45b6c1d9ce3f63cfa037c0e64e74789 /Source
parent95250e0f0c5780ac113a9a4c948c452038b4c02a (diff)
downloadsequelpro-fdec26ea42ad4c89ff33d5e902af471bc8112d9b.tar.gz
sequelpro-fdec26ea42ad4c89ff33d5e902af471bc8112d9b.tar.bz2
sequelpro-fdec26ea42ad4c89ff33d5e902af471bc8112d9b.zip
Fix an exception when removing custom content filters via the outline view’s context menu (#2733)
Diffstat (limited to 'Source')
-rw-r--r--Source/SPContentFilterManager.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPContentFilterManager.m b/Source/SPContentFilterManager.m
index 6356f416..5dc0c48b 100644
--- a/Source/SPContentFilterManager.m
+++ b/Source/SPContentFilterManager.m
@@ -237,7 +237,7 @@ static NSString *SPExportFilterAction = @"SPExportFilter";
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 @@ static NSString *SPExportFilterAction = @"SPExportFilter";
{
// 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")