* EOControl/EOEditingContext.m (_undoManagerCheckpoint:):

Insure we only call _processEndOfEventNotification: if we
	already have a grouping level.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27970 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2009-02-25 08:09:07 +00:00
parent cf1768f553
commit f259e3a5ee
2 changed files with 16 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2009-02-25 David Ayers <ayers@fsfe.org>
* EOControl/EOEditingContext.m (_undoManagerCheckpoint:):
Insure we only call _processEndOfEventNotification: if we
already have a grouping level.
2009-02-21 Matt Rice <ratmice@gmail.com>
* DBModeler/Modeler.m (-newFromDatabase:): Remove extra release.

View file

@ -1517,7 +1517,16 @@ _mergeValueForKey(id obj, id value,
{
/* TODO Figure out when checkpoint notifications should cause the
editing context to process changes */
[self _processEndOfEventNotification: notification];
/* In WO45 the NSUndoManager did not send a
NSUndoManagerCheckpointNotification upon beginning an
undo grouping. Current incarnations of GNUStep/Cocoa do.
There for we guard against processing end of event during
the beginning if an undo group here. */
if ([_undoManager groupingLevel] > 0)
{
[self _processEndOfEventNotification: notification];
}
}
- (BOOL) _processRecentChanges