aboutsummaryrefslogtreecommitdiffstats
path: root/Source
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
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')
-rw-r--r--Source/CustomQuery.h1
-rw-r--r--Source/CustomQuery.m6
2 files changed, 7 insertions, 0 deletions
diff --git a/Source/CustomQuery.h b/Source/CustomQuery.h
index 908dd594..9b75c906 100644
--- a/Source/CustomQuery.h
+++ b/Source/CustomQuery.h
@@ -47,6 +47,7 @@
IBOutlet id runSelectionButton;
IBOutlet id runAllButton;
IBOutlet NSMenuItem *runSelectionMenuItem;
+ IBOutlet NSMenuItem *clearHistoryMenuItem;
IBOutlet NSMenuItem *shiftLeftMenuItem;
IBOutlet NSMenuItem *shiftRightMenuItem;
IBOutlet NSMenuItem *completionListMenuItem;
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) {