summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-04 13:59:01 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:36 -0800
commit0e1aa02c3caa0e5dec00866c1ba9f4858515bb17 (patch)
tree0f6b80a054682af9a67fe5f0a2754c7ee59da949 /MobileCydia.mm
parent63ae52beba8046c7d3812fbf055dc2725eb3e5f9 (diff)
Use the argument from commitEditingStyle.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm8
1 files changed, 5 insertions, 3 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 296e7c3..bebae78 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 {