aboutsummaryrefslogtreecommitdiffstats
path: root/TableDocument.m
diff options
context:
space:
mode:
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")];