diff options
author | bamse16 <marius@marius.me.uk> | 2012-09-18 20:59:10 +0000 |
---|---|---|
committer | bamse16 <marius@marius.me.uk> | 2012-09-18 20:59:10 +0000 |
commit | 18a68272f98b4a7460a1b5c91d21a5e6de6b8f9f (patch) | |
tree | d0aeecd09f76db3ca2881a60bca8515dfd709764 | |
parent | a0b76fba5ade5b1c018cb7ebcfae193cec114f5f (diff) | |
download | sequelpro-18a68272f98b4a7460a1b5c91d21a5e6de6b8f9f.tar.gz sequelpro-18a68272f98b4a7460a1b5c91d21a5e6de6b8f9f.tar.bz2 sequelpro-18a68272f98b4a7460a1b5c91d21a5e6de6b8f9f.zip |
Issue 1462: Right click in custom filter editor causes exception
-rw-r--r-- | Source/SPContentFilterManager.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPContentFilterManager.m b/Source/SPContentFilterManager.m index 4bfb399e..cf12ebe0 100644 --- a/Source/SPContentFilterManager.m +++ b/Source/SPContentFilterManager.m @@ -469,8 +469,8 @@ [resultingClauseLabel setHidden:!enable]; [resultingClauseContentLabel setHidden:!enable]; [insertPlaceholderButton setEnabled:enable]; - - return ([[contentFilters objectAtIndex:rowIndex] objectForKey:@"headerOfFileURL"]) ? NO : YES; + + return (rowIndex >= 0 && [[contentFilters objectAtIndex:rowIndex] objectForKey:@"headerOfFileURL"]) ? NO : YES; } /** |