summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2010-11-04 18:01:37 -0700
committerGrant Paul <chpwn@chpwn.com>2010-11-04 18:01:37 -0700
commit477de10589b118b30ca939bdd30bb32f0377f1c6 (patch)
treef3f494a150b9fe1df78c4b43c19c3680fd89e6d6 /MobileCydia.mm
parent46c46f4fe6dd945ea8d0040c9833ecd3af572f87 (diff)
Fixed bug where you can select section cells when editing.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm5
1 files changed, 4 insertions, 1 deletions
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;