Commit a44cec5c authored by Pierre SAGASPE's avatar Pierre SAGASPE

VLCNetworkLoginDataSource : only show delete button on swipe for the login cells saved

(cherry picked from commit f3350c05622308eebfc8c6f7f95ac58cd906f966)
parent 3adc404b
......@@ -75,6 +75,16 @@
}
}
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
id<VLCNetworkLoginDataSourceSection> dataSource = self.dataSources[indexPath.section];
if ([[dataSource cellIdentifierForRow:indexPath.row] isEqual:@"VLCNetworkLoginSavedLoginCell"]) {
return UITableViewCellEditingStyleDelete;
} else {
return UITableViewCellEditingStyleNone;
}
}
- (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSIndexPath *targetIndexPath = indexPath;
id<VLCNetworkLoginDataSourceSection> dataSource = self.dataSources[indexPath.section];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment