aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authoravenjamin <avenjamin@gmail.com>2009-04-02 04:54:26 +0000
committeravenjamin <avenjamin@gmail.com>2009-04-02 04:54:26 +0000
commit5b276bcb43ee74a4d065cf347f795a0d319e743f (patch)
tree7a6bb9ff0eb14c1cc9acd2b1f0a65e549f25dab3 /Source/CustomQuery.m
parent00910549fefaaa0954aa080a3ec1be5a4746062b (diff)
downloadsequelpro-5b276bcb43ee74a4d065cf347f795a0d319e743f.tar.gz
sequelpro-5b276bcb43ee74a4d065cf347f795a0d319e743f.tar.bz2
sequelpro-5b276bcb43ee74a4d065cf347f795a0d319e743f.zip
- Implemented "Clear History" in new Gear menu
- Changed UI in Query Tab for favourite and history popups as well as Run query buttons
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m6
1 files changed, 6 insertions, 0 deletions
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) {