mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-22 10:51:04 +00:00
* 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:
parent
708bacc116
commit
b9ab8664ff
2 changed files with 19 additions and 0 deletions
|
@ -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>
|
2005-08-23 Manuel Guesdon <mguesdon@orange-concept.com>
|
||||||
|
|
||||||
* EOAdaptors/Postgres95/Postgres95Private.m: added
|
* EOAdaptors/Postgres95/Postgres95Private.m: added
|
||||||
|
|
|
@ -1675,6 +1675,19 @@ _mergeValueForKey(id obj, id value,
|
||||||
if (add == NO) continue;
|
if (add == NO) continue;
|
||||||
|
|
||||||
[insertedAndDeleted addObject: obj];
|
[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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue