diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-08-28 21:29:33 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-08-28 21:29:33 +0000 |
commit | 96e8c7492cb0b27173cbc3a56d703b100dad0e5a (patch) | |
tree | 75a21e147a90914af5afad72a72f7a70cad454f3 /Source/SPTableView.m | |
parent | 5b223789a022a89328c35905ffe3c9fe9c9421bd (diff) | |
download | sequelpro-96e8c7492cb0b27173cbc3a56d703b100dad0e5a.tar.gz sequelpro-96e8c7492cb0b27173cbc3a56d703b100dad0e5a.tar.bz2 sequelpro-96e8c7492cb0b27173cbc3a56d703b100dad0e5a.zip |
• improved Query Favorite Manager
- tableView is now a SPTableView for right-click selects item first
- corrected tooltips for all buttons and menu items
- added short-cut ⌘D for duplicate, ⌫ for remove, and ⌥⎋ for gear menu (which could be the standard for all gear menus?)
- remove selected favorite(s) asks the user first
- added chance to select and remove more than one favorite
- added chance to export selected favorites as SPF file
The file structure (format 'query favorites') goes conform with the SPF 'connection' format.
To be discussed: Should we add a separate Import Favorites menu or should we do that via the general "Open…" menu item since the SPF format tells SP what to do with that file?
Diffstat (limited to 'Source/SPTableView.m')
-rw-r--r-- | Source/SPTableView.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPTableView.m b/Source/SPTableView.m index cf93f143..38cd949e 100644 --- a/Source/SPTableView.m +++ b/Source/SPTableView.m @@ -64,8 +64,9 @@ // Check if ENTER or RETURN is hit and edit the column. if([self numberOfSelectedRows] == 1 && ([theEvent keyCode] == 36 || [theEvent keyCode] == 76)) { - if (![[[[self delegate] class] description] isEqualToString:@"CustomQuery"]){ - [self editColumn:0 row:[self selectedRow] withEvent:nil select:YES]; + if (![[[[self delegate] class] description] isEqualToString:@"CustomQuery"] && + ![[[[self delegate] class] description] isEqualToString:@"SPQueryFavoriteManager"]){ + [self editColumn:0 row:[self selectedRow] withEvent:nil select:YES]; return; } } |