aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryFavoriteManager.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPQueryFavoriteManager.m')
-rw-r--r--Source/SPQueryFavoriteManager.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPQueryFavoriteManager.m b/Source/SPQueryFavoriteManager.m
index a715bd93..3738fe0d 100644
--- a/Source/SPQueryFavoriteManager.m
+++ b/Source/SPQueryFavoriteManager.m
@@ -255,9 +255,10 @@
*/
- (IBAction)removeQueryFavorite:(id)sender
{
-
+ //sender can be a NSButton or a NSMenuItem
+
// Complete editing in the window
- [[sender window] makeFirstResponder:[sender window]];
+ [[self window] makeFirstResponder:[self window]];
NSAlert *alert = [NSAlert alertWithMessageText:NSLocalizedString(@"Remove selected query favorites?", @"remove selected query favorites message")
defaultButton:NSLocalizedString(@"Remove", @"remove button")