From: Jay Freeman (saurik) Date: Fri, 4 Mar 2011 21:59:01 +0000 (-0800) Subject: Use the argument from commitEditingStyle. X-Git-Tag: v1.1.0%b1~72 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/0e1aa02c3caa0e5dec00866c1ba9f4858515bb17 Use the argument from commitEditingStyle. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 296e7c34..bebae78e 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -8177,9 +8177,11 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } - (void) tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { - Source *source = [self sourceAtIndexPath:indexPath]; - [Sources_ removeObjectForKey:[source key]]; - [delegate_ syncData]; + if (editingStyle == UITableViewCellEditingStyleDelete) { + Source *source = [self sourceAtIndexPath:indexPath]; + [Sources_ removeObjectForKey:[source key]]; + [delegate_ syncData]; + } } - (void) complete {