diff options
Diffstat (limited to 'TableDocument.m')
-rw-r--r-- | TableDocument.m | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/TableDocument.m b/TableDocument.m index a90856b0..5ecc75b2 100644 --- a/TableDocument.m +++ b/TableDocument.m @@ -406,9 +406,13 @@ reused when user hits the close button of the variablseSheet or of the createTab if (!chooseDatabaseButton) return; - [chooseDatabaseButton removeAllItems]; - [chooseDatabaseButton addItemWithTitle:NSLocalizedString(@"Choose Database...", @"menu item for choose db")]; - + [chooseDatabaseButton removeAllItems]; + [chooseDatabaseButton addItemWithTitle:NSLocalizedString(@"Choose Database...", @"menu item for choose db")]; + [[chooseDatabaseButton menu] addItem:[NSMenuItem separatorItem]]; + [[chooseDatabaseButton menu] addItemWithTitle:NSLocalizedString(@"Add Database...", @"menu item to add db") action:@selector(addDatabase:) keyEquivalent:@""]; + [[chooseDatabaseButton menu] addItem:[NSMenuItem separatorItem]]; + + MCPResult *queryResult = [mySQLConnection listDBs]; int i; for ( i = 0 ; i < [queryResult numOfRows] ; i++ ) { |