diff options
author | stuconnolly <stuart02@gmail.com> | 2008-12-07 17:50:43 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2008-12-07 17:50:43 +0000 |
commit | a595204bd4f703fec67e35ee778f88f7fcc4a57a (patch) | |
tree | 92c382b327741939c52e5e7778d438830f25aabf /TableContent.m | |
parent | 0eff207065c74b903c1358a91f7bffadd631b8e7 (diff) | |
download | sequelpro-a595204bd4f703fec67e35ee778f88f7fcc4a57a.tar.gz sequelpro-a595204bd4f703fec67e35ee778f88f7fcc4a57a.tar.bz2 sequelpro-a595204bd4f703fec67e35ee778f88f7fcc4a57a.zip |
If the user is filtering for NULLs then disable the filter input field.
Diffstat (limited to 'TableContent.m')
-rw-r--r-- | TableContent.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/TableContent.m b/TableContent.m index e6ee519d..edf6a359 100644 --- a/TableContent.m +++ b/TableContent.m @@ -599,6 +599,15 @@ [countText setStringValue:[NSString stringWithFormat:NSLocalizedString(@"%d rows in table", @"text showing how many rows are in the result"), numRows]]; } +/** + * Enables or disables the filter input field based on the selected filter type. + */ +- (IBAction)toggleFilterField:(id)sender +{ + // If the user is filtering for NULLs then disabled the filter field, otherwise enable it. + [argumentField setEnabled:(![[[compareField selectedItem] title] hasSuffix:@"NULL"])]; +} + //edit methods - (IBAction)addRow:(id)sender |