Commit 0ee15e08 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Fix playback from within a folder, broken in e1d0d199

parent 97f971c1
......@@ -600,6 +600,7 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
[tableView deselectRowAtIndexPath:indexPath animated:YES];
NSManagedObject *selectedObject;
if (tableView == self.searchDisplayController.searchResultsTableView)
selectedObject = _searchData[indexPath.row];
else
......@@ -631,11 +632,11 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
[_list addMedia:[VLCMedia mediaWithURL:[NSURL URLWithString:file.url]]];
}
_mediaToPlayIndex = indexPath.row;
} else {
if (_searchDisplayController.active == YES)
[_searchDisplayController setActive:NO animated:NO];
[self openMediaObject:selectedObject];
}
if (_searchDisplayController.active == YES)
[_searchDisplayController setActive:NO animated:YES];
[self openMediaObject:selectedObject];
}
#pragma mark - VLCMedialistDelegate
......
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