From: Grant Paul Date: Fri, 5 Nov 2010 01:01:37 +0000 (-0700) Subject: Fixed bug where you can select section cells when editing. X-Git-Tag: v1.0.3366~79 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/477de10589b118b30ca939bdd30bb32f0377f1c6 Fixed bug where you can select section cells when editing. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index bccf5b28..fd4399b6 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4953,6 +4953,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } [self setAccessoryType:editing ? UITableViewCellAccessoryNone : UITableViewCellAccessoryDisclosureIndicator]; + [self setSelectionStyle:editing ? UITableViewCellSelectionStyleNone : UITableViewCellSelectionStyleBlue]; [content_ setNeedsDisplay]; } @@ -6762,7 +6763,9 @@ freeing the view controllers on tab change */ } - (void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { - Section *section = [self sectionAtIndexPath:indexPath]; + if (editing_) return; + + Section *section = [self sectionAtIndexPath:indexPath]; NSString *name = [section name]; NSString *title;