mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 05:32:11 +00:00
possible fix for ivan's StepOPML editor problem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39118 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
23533e0570
commit
ff8d56fd1b
2 changed files with 15 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
|||
2015-11-02 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSOutlineView.m:
|
||||
The _expandedItems array needs to be managed using tests for identical
|
||||
members rather than equal members, to handle the case where a view has
|
||||
multiple equal members (we don't want all equal items expanded, only
|
||||
the exact item.
|
||||
|
||||
2015-11-01 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GNUmakefile.preamble:
|
||||
|
|
|
@ -432,7 +432,11 @@ static NSImage *unexpandable = nil;
|
|||
return YES;
|
||||
}
|
||||
// Check the array to determine if it is expanded.
|
||||
return([_expandedItems containsObject: item]);
|
||||
if ([_expandedItems indexOfObjectIdenticalTo: item] == NSNotFound)
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2078,7 +2082,7 @@ Also returns the child index relative to this parent. */
|
|||
// close the item...
|
||||
if (item != nil)
|
||||
{
|
||||
[_expandedItems removeObject: item];
|
||||
[_expandedItems removeObjectIdenticalTo: item];
|
||||
}
|
||||
|
||||
// For the close method it doesn't matter what order they are
|
||||
|
@ -2167,7 +2171,7 @@ Also returns the child index relative to this parent. */
|
|||
[self _removeChildren: child];
|
||||
NSMapRemove(_itemDict, child);
|
||||
[_items removeObject: child];
|
||||
[_expandedItems removeObject: child];
|
||||
[_expandedItems removeObjectIdenticalTo: child];
|
||||
}
|
||||
[anarray removeAllObjects];
|
||||
[self _noteNumberOfRowsChangedBelowItem: startitem by: -numChildren];
|
||||
|
|
Loading…
Reference in a new issue