From 477de10589b118b30ca939bdd30bb32f0377f1c6 Mon Sep 17 00:00:00 2001 From: Grant Paul Date: Thu, 4 Nov 2010 18:01:37 -0700 Subject: Fixed bug where you can select section cells when editing. --- MobileCydia.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'MobileCydia.mm') diff --git a/MobileCydia.mm b/MobileCydia.mm index bccf5b2..fd4399b 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; -- cgit v1.2.3