[Playlist Metadata] Safety check for deletion
Apply a safety check in case the update comes for a deleted track. Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
c7cd9b6daf
commit
a0761a41c9
|
@ -416,8 +416,10 @@
|
|||
|
||||
- (IBAction)refreshTrack:(id)sender {
|
||||
PlaylistEntry *pe = (PlaylistEntry *)sender;
|
||||
unsigned long columns = [[self tableColumns] count];
|
||||
[self reloadDataForRowIndexes:[NSIndexSet indexSetWithIndex:[pe index]] columnIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, columns)]];
|
||||
if(pe && !pe.deLeted) {
|
||||
unsigned long columns = [[self tableColumns] count];
|
||||
[self reloadDataForRowIndexes:[NSIndexSet indexSetWithIndex:pe.index] columnIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, columns)]];
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
|
Loading…
Reference in New Issue