aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-03-05 00:12:49 +0000
committerrowanbeentje <rowan@beent.je>2013-03-05 00:12:49 +0000
commit2d9e30ebc8a5937d0c9a41fc8d995cd5287040a7 (patch)
tree9a098076ce99c26e757e2219dc5d81730f580d19 /Source
parentf2545c5e4fc4414d4ee448de4a5f399d6cf58ad2 (diff)
downloadsequelpro-2d9e30ebc8a5937d0c9a41fc8d995cd5287040a7.tar.gz
sequelpro-2d9e30ebc8a5937d0c9a41fc8d995cd5287040a7.tar.bz2
sequelpro-2d9e30ebc8a5937d0c9a41fc8d995cd5287040a7.zip
- End editing for deleting content filter or query favourites, addressing exceptions and Issue #1648
Diffstat (limited to 'Source')
-rw-r--r--Source/SPContentFilterManager.m4
-rw-r--r--Source/SPQueryFavoriteManager.m4
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/SPContentFilterManager.m b/Source/SPContentFilterManager.m
index d0282612..f30f885a 100644
--- a/Source/SPContentFilterManager.m
+++ b/Source/SPContentFilterManager.m
@@ -292,6 +292,10 @@
*/
- (IBAction)removeContentFilter:(id)sender
{
+
+ // Complete editing in the window
+ [[sender window] makeFirstResponder:[sender window]];
+
NSAlert *alert = [NSAlert alertWithMessageText:NSLocalizedString(@"Remove selected content filters?", @"remove selected content filters message")
defaultButton:NSLocalizedString(@"Remove", @"remove button")
alternateButton:NSLocalizedString(@"Cancel", @"cancel button")
diff --git a/Source/SPQueryFavoriteManager.m b/Source/SPQueryFavoriteManager.m
index 79839316..c035f6f8 100644
--- a/Source/SPQueryFavoriteManager.m
+++ b/Source/SPQueryFavoriteManager.m
@@ -258,6 +258,10 @@
*/
- (IBAction)removeQueryFavorite:(id)sender
{
+
+ // Complete editing in the window
+ [[sender window] makeFirstResponder:[sender window]];
+
NSAlert *alert = [NSAlert alertWithMessageText:NSLocalizedString(@"Remove selected query favorites?", @"remove selected query favorites message")
defaultButton:NSLocalizedString(@"Remove", @"remove button")
alternateButton:NSLocalizedString(@"Cancel", @"cancel button")