aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryFavoriteManager.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-09-30 20:22:21 +0000
committerBibiko <bibiko@eva.mpg.de>2009-09-30 20:22:21 +0000
commit628c5e40844aa54baff93cfb5cafd5d2b473458a (patch)
tree6098b67856ba4767e66ca39fa91f947375b2939e /Source/SPQueryFavoriteManager.m
parent885534612cfd9564d54b6f988590e84567181905 (diff)
downloadsequelpro-628c5e40844aa54baff93cfb5cafd5d2b473458a.tar.gz
sequelpro-628c5e40844aa54baff93cfb5cafd5d2b473458a.tar.bz2
sequelpro-628c5e40844aa54baff93cfb5cafd5d2b473458a.zip
• further progress on the Content Filter Editor
• fixed issue for "Add" a new favorite in SPQueryFavoriteManager: - save pending changes in the query textView in beforehand
Diffstat (limited to 'Source/SPQueryFavoriteManager.m')
-rw-r--r--Source/SPQueryFavoriteManager.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPQueryFavoriteManager.m b/Source/SPQueryFavoriteManager.m
index 202cfa09..590bf3c9 100644
--- a/Source/SPQueryFavoriteManager.m
+++ b/Source/SPQueryFavoriteManager.m
@@ -195,6 +195,9 @@
NSMutableDictionary *favorite;
NSUInteger insertIndex;
+ // Store pending changes in Query
+ [[self window] makeFirstResponder:favoriteNameTextField];
+
// Duplicate a selected favorite if sender == self
if(sender == self)
favorite = [NSMutableDictionary dictionaryWithObjects:[NSArray arrayWithObjects:[[favoriteNameTextField stringValue] stringByAppendingFormat:@" Copy"], [favoriteQueryTextView string], nil] forKeys:[NSArray arrayWithObjects:@"name", @"query", nil]];