mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Minor cleanup in NSOutlineView code
This commit is contained in:
parent
3c160c9bb8
commit
c2324e102d
1 changed files with 2 additions and 1 deletions
|
@ -2195,7 +2195,6 @@ Also returns the child index relative to this parent. */
|
|||
if (theBinding != nil)
|
||||
{
|
||||
id observedObject = [theBinding observedObject];
|
||||
NSTreeController *tc = (NSTreeController *)observedObject;
|
||||
NSArray *children = nil;
|
||||
|
||||
/* If there is a binding present, then allow it to be editable
|
||||
|
@ -2210,6 +2209,8 @@ Also returns the child index relative to this parent. */
|
|||
*/
|
||||
if ([observedObject isKindOfClass: [NSTreeController class]])
|
||||
{
|
||||
NSTreeController *tc = (NSTreeController *)observedObject;
|
||||
|
||||
if (startitem == nil)
|
||||
{
|
||||
NSTreeNode *node = (NSTreeNode *)[theBinding destinationValue];
|
||||
|
|
Loading…
Reference in a new issue