aboutsummaryrefslogtreecommitdiffstats
path: root/TableDocument.m
diff options
context:
space:
mode:
authorabhibeckert <abhi@abhibeckert.com>2008-05-02 12:27:35 +0000
committerabhibeckert <abhi@abhibeckert.com>2008-05-02 12:27:35 +0000
commitd508dc92ea00639c7bb6213bfcce945085913a0a (patch)
treee91f08f188fdaae22daf25c69e5be1e5d0896b5b /TableDocument.m
parent87db30e021e17dd43d9fcfbb07171923e1114a4b (diff)
downloadsequelpro-d508dc92ea00639c7bb6213bfcce945085913a0a.tar.gz
sequelpro-d508dc92ea00639c7bb6213bfcce945085913a0a.tar.bz2
sequelpro-d508dc92ea00639c7bb6213bfcce945085913a0a.zip
move flush privileges toolbar icon into database menu
Diffstat (limited to 'TableDocument.m')
-rw-r--r--TableDocument.m12
1 files changed, 1 insertions, 11 deletions
diff --git a/TableDocument.m b/TableDocument.m
index 151a4c39..259b6171 100644
--- a/TableDocument.m
+++ b/TableDocument.m
@@ -911,7 +911,7 @@ reused when user hits the close button of the variablseSheet or of the createTab
/**
* flushes the mysql privileges
*/
-- (void)flushPrivileges
+- (void)flushPrivileges:(id)sender
{
[mySQLConnection queryString:@"FLUSH PRIVILEGES"];
@@ -1191,16 +1191,6 @@ passes the request to the tableDump object
//set up the target action
[toolbarItem setTarget:self];
[toolbarItem setAction:@selector(clearConsole)];
- } else if ([itemIdentifier isEqualToString:@"FlushPrivilegesIdentifier"]) {
- //set the text label to be displayed in the toolbar and customization palette
- [toolbarItem setLabel:NSLocalizedString(@"Flush Privileges", @"toolbar item for flush privileges")];
- [toolbarItem setPaletteLabel:NSLocalizedString(@"Flush Privileges", @"toolbar item for flush privileges")];
- //set up tooltip and image
- [toolbarItem setToolTip:NSLocalizedString(@"Reload the MySQL privileges saved in the mysql database", @"tooltip for toolbar item for flush privileges")];
- [toolbarItem setImage:[NSImage imageNamed:@"flushprivileges"]];
- //set up the target action
- [toolbarItem setTarget:self];
- [toolbarItem setAction:@selector(flushPrivileges)];
} else if ([itemIdentifier isEqualToString:@"SwitchToTableStructureToolbarItemIdentifier"]) {
[toolbarItem setLabel:NSLocalizedString(@"Table", @"toolbar item label for switching to the Table Structure tab")];
[toolbarItem setPaletteLabel:NSLocalizedString(@"Table Structure", @"toolbar item label for switching to the Table Structure tab")];