From d1e1aaab9e867a6854712ecd928eb7bf10643190 Mon Sep 17 00:00:00 2001 From: Grant Paul Date: Thu, 4 Nov 2010 18:01:37 -0700 Subject: [PATCH 1/1] Fixed bug where you can select section cells when editing. --- MobileCydia.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.50.0