[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
parent
00ea4562dc
commit
f11ef2d887
Playlist
|
@ -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
|
// Cheap hack so the index column isn't sorted
|
||||||
if([sortDescriptors count] != 0) {
|
if([sortDescriptors count] != 0) {
|
||||||
if([[sortDescriptors[0] key] caseInsensitiveCompare:@"index"] == NSOrderedSame) {
|
if([[((NSSortDescriptor *)(sortDescriptors[0])) key] caseInsensitiveCompare:@"index"] == NSOrderedSame) {
|
||||||
// Remove the sort descriptors
|
// Remove the sort descriptors
|
||||||
[super setSortDescriptors:@[]];
|
[super setSortDescriptors:@[]];
|
||||||
[self rearrangeObjects];
|
[self rearrangeObjects];
|
||||||
|
|
Loading…
Reference in New Issue