Commit f54ee623 authored by Pierre SAGASPE's avatar Pierre SAGASPE Committed by Tarax
Browse files

server discovery : fix the return nil when selecting a server in ServerListView

parent b4fd82f0
......@@ -318,7 +318,7 @@
- (BasicUPnPDevice *)upnpDeviceForIndexPath:(NSIndexPath *)indexPath
{
NSUInteger row = indexPath.row;
if (row < _filteredUPNPDevices.count || _filteredUPNPDevices.count == 0)
if (row > _filteredUPNPDevices.count || _filteredUPNPDevices.count == 0)
return nil;
return _filteredUPNPDevices[row];
}
......@@ -326,7 +326,7 @@
- (NSDictionary *)plexServiceDescriptionForIndexPath:(NSIndexPath *)indexPath
{
NSUInteger row = indexPath.row;
if (row < _PlexServicesInfo.count || _PlexServicesInfo.count == 0)
if (row > _PlexServicesInfo.count || _PlexServicesInfo.count == 0)
return nil;
return _PlexServicesInfo[row];
}
......@@ -334,7 +334,7 @@
- (NSString *)ftpHostnameForIndexPath:(NSIndexPath *)indexPath
{
NSUInteger row = indexPath.row;
if (row < _ftpServices.count || _ftpServices.count == 0)
if (row > _ftpServices.count || _ftpServices.count == 0)
return nil;
return [_ftpServices[row] hostName];
}
......@@ -342,7 +342,7 @@
- (NSDictionary *)httpServiceDescriptionForIndexPath:(NSIndexPath *)indexPath
{
NSUInteger row = indexPath.row;
if (row < _httpServicesInfo.count || _httpServicesInfo.count == 0)
if (row > _httpServicesInfo.count || _httpServicesInfo.count == 0)
return nil;
return _httpServicesInfo[row];
}
......
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