diff options
author | avenjamin <avenjamin@gmail.com> | 2008-09-16 11:28:21 +0000 |
---|---|---|
committer | avenjamin <avenjamin@gmail.com> | 2008-09-16 11:28:21 +0000 |
commit | 575c378b978ede0cc9da98e64cd424d5e2a18fde (patch) | |
tree | 3cff4df404a2ab60fca282f8116ccd10074be865 /TableDocument.m | |
parent | d77b8b8cd45b0afeee01f4eadf4c092c6e1e57b0 (diff) | |
download | sequelpro-575c378b978ede0cc9da98e64cd424d5e2a18fde.tar.gz sequelpro-575c378b978ede0cc9da98e64cd424d5e2a18fde.tar.bz2 sequelpro-575c378b978ede0cc9da98e64cd424d5e2a18fde.zip |
Added "Add Database..." to Chose Database popup button.
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++ ) { |