aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-09-01 10:22:35 +0000
committerstuconnolly <stuart02@gmail.com>2010-09-01 10:22:35 +0000
commita57a5858fb2d8e876224bc5a7b5833fc8e196acf (patch)
tree180f0bfcd234ee4b50faf8f2393e0dc0c199c2a3
parent14062fe0ece8aeedf82ac29dd2daef733313a7b4 (diff)
downloadsequelpro-a57a5858fb2d8e876224bc5a7b5833fc8e196acf.tar.gz
sequelpro-a57a5858fb2d8e876224bc5a7b5833fc8e196acf.tar.bz2
sequelpro-a57a5858fb2d8e876224bc5a7b5833fc8e196acf.zip
Remove an attempt to obtain a bool value from a var that is already one resulting in a crash when attempting to remove an index. Fixes log: http://spbug.com/l/1007.
-rw-r--r--Source/SPIndexesController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPIndexesController.m b/Source/SPIndexesController.m
index 6fd94d00..d7a509bd 100644
--- a/Source/SPIndexesController.m
+++ b/Source/SPIndexesController.m
@@ -443,7 +443,7 @@
BOOL removeForeignKey = [[indexDetails objectForKey:@"RemoveForeignKey"] boolValue];
// Remove the foreign key dependency before the index if required
- if ([removeForeignKey boolValue]) {
+ if (removeForeignKey) {
NSString *columnName = [index objectForKey:@"Column_name"];