From: Grant Paul Date: Sat, 26 Feb 2011 08:36:31 +0000 (-0800) Subject: Fixed crash in SectionsController when there are hidden sections. X-Git-Tag: v1.1.0%b1~161 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/b3551da81111bb32cd8be2cbb6e184f82c6eb842 Fixed crash in SectionsController when there are hidden sections. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 9448e640..662c08b7 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7335,12 +7335,15 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } - (Section *) sectionAtIndexPath:(NSIndexPath *)indexPath { - Section *section = nil; + Section *section = nil; int index = [indexPath row]; - if (![self isEditing]) - index -= 1; - if (index >= 0) - section = [filtered_ objectAtIndex:index]; + if (![self isEditing]) { + index -= 1; + if (index >= 0) + section = [filtered_ objectAtIndex:index]; + } else { + section = [sections_ objectAtIndex:index]; + } return section; }