Commit 6acc8dde authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

Fix runtime exception

(cherry picked from commit b5412fce)
parent 2e9dfcaa
......@@ -681,8 +681,11 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
if (editingStyle == UITableViewCellEditingStyleDelete)
[self removeMediaObject: _foundMedia[indexPath.row] updateDatabase:YES];
if (editingStyle == UITableViewCellEditingStyleDelete) {
NSInteger row = indexPath.row;
if (row < _foundMedia.count)
[self removeMediaObject: _foundMedia[row] updateDatabase:YES];
- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
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