From 5b276bcb43ee74a4d065cf347f795a0d319e743f Mon Sep 17 00:00:00 2001 From: avenjamin Date: Thu, 2 Apr 2009 04:54:26 +0000 Subject: - Implemented "Clear History" in new Gear menu - Changed UI in Query Tab for favourite and history popups as well as Run query buttons --- Source/CustomQuery.m | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Source/CustomQuery.m') diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index baa81170..3d6c18d0 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -161,6 +161,12 @@ closes the sheet */ - (IBAction)gearMenuItemSelected:(id)sender { + // "Clear History" menu item - clear query history + if (sender == clearHistoryMenuItem) { + [queryHistoryButton removeAllItems]; + [queryHistoryButton addItemWithTitle:NSLocalizedString(@"Query History…",@"Title of query history popup button")]; + [prefs setObject:[NSArray array] forKey:@"queryHistory"]; + } // "Shift Right" menu item - indent the selection with an additional tab. if (sender == shiftRightMenuItem) { -- cgit v1.2.3