mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 02:41:00 +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
bc42cafae2
commit
ba432d5973
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>
|
2015-11-01 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/GNUmakefile.preamble:
|
* Source/GNUmakefile.preamble:
|
||||||
|
|
|
@ -432,7 +432,11 @@ static NSImage *unexpandable = nil;
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
// Check the array to determine if it is expanded.
|
// 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...
|
// close the item...
|
||||||
if (item != nil)
|
if (item != nil)
|
||||||
{
|
{
|
||||||
[_expandedItems removeObject: item];
|
[_expandedItems removeObjectIdenticalTo: item];
|
||||||
}
|
}
|
||||||
|
|
||||||
// For the close method it doesn't matter what order they are
|
// 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];
|
[self _removeChildren: child];
|
||||||
NSMapRemove(_itemDict, child);
|
NSMapRemove(_itemDict, child);
|
||||||
[_items removeObject: child];
|
[_items removeObject: child];
|
||||||
[_expandedItems removeObject: child];
|
[_expandedItems removeObjectIdenticalTo: child];
|
||||||
}
|
}
|
||||||
[anarray removeAllObjects];
|
[anarray removeAllObjects];
|
||||||
[self _noteNumberOfRowsChangedBelowItem: startitem by: -numChildren];
|
[self _noteNumberOfRowsChangedBelowItem: startitem by: -numChildren];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue