diff options
author | Bibiko <bibiko@eva.mpg.de> | 2011-01-19 22:06:12 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2011-01-19 22:06:12 +0000 |
commit | 0234a711d310934d4b7db541cf9af0e33e5b18c2 (patch) | |
tree | aa2ba2e6231e98a3026ffde6790dba8b991fda04 /Source | |
parent | 0106844012a76356853e08f965a46db685f98987 (diff) | |
download | sequelpro-0234a711d310934d4b7db541cf9af0e33e5b18c2.tar.gz sequelpro-0234a711d310934d4b7db541cf9af0e33e5b18c2.tar.bz2 sequelpro-0234a711d310934d4b7db541cf9af0e33e5b18c2.zip |
• bound showFilterTable to main menu's Edit > Find > Find… menu item
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPCopyTable.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/SPCopyTable.m b/Source/SPCopyTable.m index d31ae09d..3b84d867 100644 --- a/Source/SPCopyTable.m +++ b/Source/SPCopyTable.m @@ -934,6 +934,10 @@ NSInteger kBlobAsImageFile = 4; { NSInteger menuItemTag = [anItem tag]; + if ([anItem action] == @selector(performFindPanelAction:)) { + return (menuItemTag == 1 && [[self delegate] isKindOfClass:[SPTableContent class]]); + } + // Don't validate anything other than the copy commands if (menuItemTag != MENU_EDIT_COPY && menuItemTag != MENU_EDIT_COPY_WITH_COLUMN && menuItemTag != MENU_EDIT_COPY_AS_SQL) { return YES; @@ -1095,6 +1099,13 @@ NSInteger kBlobAsImageFile = 4; [super keyDown:theEvent]; } +- (void)performFindPanelAction:(id)sender +{ + if([sender tag] == 1 && [[self delegate] isKindOfClass:[SPTableContent class]]) { + [[self delegate] showFilterTable:self]; + } +} + #pragma mark - #pragma mark Bundle Command Support |