Skip to content

Commit

Permalink
Fix handling of leaf nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa committed Jan 19, 2025
1 parent 4bb57d4 commit fbb22c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/NSBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Date: September 2002
Author: Gregory Casamento <[email protected]>
Date: July 2024
Note: Added support for 10.6+ delegate methods.
Note: Added support for 10.6+ delegate methods. Added bindings support

This file is part of the GNUstep GUI Library.

Expand Down Expand Up @@ -3545,9 +3545,10 @@ - (void) _performLoadOfColumn: (NSInteger)column
{
BOOL leaf = YES;
id val = nil;
NSNumber *leafBool = [child valueForKeyPath: leafKeyPath];
NSNumber *leafBool = nil; // [child valueForKeyPath: leafKeyPath];

child = [children objectAtIndex: i];
leafBool = [child valueForKeyPath: leafKeyPath];
leaf = [leafBool boolValue];

// If a content values binding is present, it uses that key path,
Expand Down

0 comments on commit fbb22c0

Please sign in to comment.