Skip to content
Snippets Groups Projects
Commit 4577ba3e authored by Claudio Cambra's avatar Claudio Cambra Committed by Jean-Baptiste Kempf
Browse files

macosx: Provide debug output when no matching input item found for clicked path item


Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent b6d41084
No related branches found
No related tags found
1 merge request!5461macosx: Fix path control in browse view
...@@ -503,17 +503,19 @@ referenceSizeForHeaderInSection:(NSInteger)section ...@@ -503,17 +503,19 @@ referenceSizeForHeaderInSection:(NSInteger)section
- (void)pathControlAction:(id)sender - (void)pathControlAction:(id)sender
{ {
if (_pathControl.clickedPathItem == nil || _childDataSource == nil) { if (self.pathControl.clickedPathItem == nil || self.childDataSource == nil) {
return; return;
} }
NSPathControlItem * const selectedItem = _pathControl.clickedPathItem; NSPathControlItem * const selectedItem = self.pathControl.clickedPathItem;
NSString * const itemNodeMrl = selectedItem.image.name; NSString * const itemNodeMrl = selectedItem.image.accessibilityDescription;
VLCInputNodePathControlItem * const matchingItem = [_pathControl.inputNodePathControlItems objectForKey:itemNodeMrl]; VLCInputNodePathControlItem * const matchingItem = [self.pathControl.inputNodePathControlItems objectForKey:itemNodeMrl];
if (matchingItem != nil) { if (matchingItem != nil) {
_childDataSource.nodeToDisplay = matchingItem.inputNode; self.childDataSource.nodeToDisplay = matchingItem.inputNode;
[_pathControl clearPathControlItemsAheadOf:selectedItem]; [self.pathControl clearPathControlItemsAheadOf:selectedItem];
} else {
NSLog(@"Could not find matching item for clicked path item: %@", selectedItem);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment