Commit 8928c3d7 authored by Felix Paul Kühne's avatar Felix Paul Kühne

network server browser vc: fix logic twist

parent e7341a13
......@@ -188,9 +188,11 @@
id<VLCNetworkServerBrowserItem> item;
NSInteger row = indexPath.row;
BOOL singlePlayback = ![[NSUserDefaults standardUserDefaults] boolForKey:kVLCAutomaticallyPlayNextItem];
if (self.searchController.isActive && row < _searchArray.count) {
item = _searchArray[row];
singlePlayback = YES;
if (self.searchController.isActive) {
if (row < _searchArray.count) {
item = _searchArray[row];
singlePlayback = YES;
}
} else {
NSArray *items = self.serverBrowser.items;
if (row < items.count) {
......
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