* EOControl/EOEditingContext.m: fix _processRecentChanges

for insert+delete before saving changes (see EOEditingContext03
in Testsuite)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@21673 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Manuel Guesdon 2005-08-24 12:00:15 +00:00
parent 708bacc116
commit b9ab8664ff
2 changed files with 19 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2005-08-24 Manuel Guesdon <mguesdon@orange-concept.com>
* EOControl/EOEditingContext.m: fix _processRecentChanges
for insert+delete before saving changes (see EOEditingContext03
in Testsuite)
2005-08-23 Manuel Guesdon <mguesdon@orange-concept.com>
* EOAdaptors/Postgres95/Postgres95Private.m: added

View file

@ -1675,6 +1675,19 @@ _mergeValueForKey(id obj, id value,
if (add == NO) continue;
[insertedAndDeleted addObject: obj];
/* We also remove it for all changes so we won't try to update
this non inserted object
Set EOEditingContext03.m in Testsuite. */
//FIXME: not sure about undo impact
if (NSHashGet(_unprocessedChanges, obj))
{
NSHashRemove(_unprocessedChanges, obj);
}
if (NSHashGet(_changedObjects, obj))
{
NSHashRemove(_changedObjects, obj);
}
}
else
{