aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbamse16 <marius@marius.me.uk>2012-09-18 20:59:10 +0000
committerbamse16 <marius@marius.me.uk>2012-09-18 20:59:10 +0000
commit18a68272f98b4a7460a1b5c91d21a5e6de6b8f9f (patch)
treed0aeecd09f76db3ca2881a60bca8515dfd709764
parenta0b76fba5ade5b1c018cb7ebcfae193cec114f5f (diff)
downloadsequelpro-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.m4
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;
}
/**