summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {