Permalink
Browse files

Removing a query favorite via its context menu would cause an excepti…

…on (fixes #2161)
  • Loading branch information...
dmoagx committed Jun 29, 2015
1 parent 0bfc077 commit 12cca5f3cb1b27180512f0ed7a2ced63b81a58d7
Showing with 3 additions and 2 deletions.
  1. +3 −2 Source/SPQueryFavoriteManager.m
@@ -255,9 +255,10 @@ - (IBAction)duplicateQueryFavorite:(id)sender
*/
- (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")

0 comments on commit 12cca5f

Please sign in to comment.