[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
Christopher Snowhill 2022-06-17 10:25:27 -07:00
parent c7cd9b6daf
commit a0761a41c9
1 changed files with 4 additions and 2 deletions

View File

@ -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