2
0

Fixed a crash when tapping a non-type row.

[FIXED]     MP-23 Crash when tapping non-type row
This commit is contained in:
Maarten Billemont
2012-07-03 10:04:39 +02:00
parent 110f7069e1
commit 029d240999
3 changed files with 8 additions and 3 deletions

View File

@@ -79,7 +79,12 @@
assert(self.navigationController.topViewController == self);
[delegate didSelectType:[self typeAtIndexPath:indexPath]];
MPElementType type = [self typeAtIndexPath:indexPath];
if (type == NSNotFound)
// Selected a non-type row.
return;
[delegate didSelectType:type];
[self.navigationController popViewControllerAnimated:YES];
}