From 628c5e40844aa54baff93cfb5cafd5d2b473458a Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 30 Sep 2009 20:22:21 +0000 Subject: =?UTF-8?q?=E2=80=A2=20further=20progress=20on=20the=20Content=20F?= =?UTF-8?q?ilter=20Editor=20=E2=80=A2=20fixed=20issue=20for=20"Add"=20a=20?= =?UTF-8?q?new=20favorite=20in=20SPQueryFavoriteManager:=20-=20save=20pend?= =?UTF-8?q?ing=20changes=20in=20the=20query=20textView=20in=20beforehand?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPQueryFavoriteManager.m | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/SPQueryFavoriteManager.m') 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]]; -- cgit v1.2.3