[Playlist Controller] Fix ambiguity with Xcode 14

This NSArray member call is ambiguous, but Xcode <14 allowed it.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
swiftingly
Christopher Snowhill 2022-06-07 18:57:19 -07:00
parent 00ea4562dc
commit f11ef2d887
1 changed files with 1 additions and 1 deletions

View File

@ -825,7 +825,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
// Cheap hack so the index column isn't sorted
if([sortDescriptors count] != 0) {
if([[sortDescriptors[0] key] caseInsensitiveCompare:@"index"] == NSOrderedSame) {
if([[((NSSortDescriptor *)(sortDescriptors[0])) key] caseInsensitiveCompare:@"index"] == NSOrderedSame) {
// Remove the sort descriptors
[super setSortDescriptors:@[]];
[self rearrangeObjects];