[Playlist] Fix refresh handling range
Apparently, somehow, indexes in obscene ranges hit this code, and cause exceptions. Strange. Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
4a269f05a1
commit
54b102f09e
|
@ -1310,8 +1310,8 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
||||||
|
|
||||||
NSMutableIndexSet *refreshSet = [[NSMutableIndexSet alloc] init];
|
NSMutableIndexSet *refreshSet = [[NSMutableIndexSet alloc] init];
|
||||||
|
|
||||||
if(currentEntry != nil && !currentEntry.deLeted) [refreshSet addIndex:currentEntry.index];
|
if(currentEntry != nil && !currentEntry.deLeted && currentEntry.index < NSNotFound) [refreshSet addIndex:currentEntry.index];
|
||||||
if(pe != nil) [refreshSet addIndex:pe.index];
|
if(pe != nil && !pe.deLeted && pe.index < NSNotFound) [refreshSet addIndex:pe.index];
|
||||||
|
|
||||||
// Refresh entire row to refresh tooltips
|
// Refresh entire row to refresh tooltips
|
||||||
unsigned long columns = [[self.tableView tableColumns] count];
|
unsigned long columns = [[self.tableView tableColumns] count];
|
||||||
|
|
Loading…
Reference in New Issue