Fix bug with fieldEditor undo history carrying across between fields

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38282 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2015-01-08 20:32:49 +00:00
parent cbb5eeabf6
commit 5c75af1e49
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2015-01-08 Doug Simons <doug.simons@testplant.com>
* Source/NSTextView.m: Fix bizarre behavior with undo/redo
actions carrying across between different fields with the
fieldEditor.
2014-07-14 Doug Simons <doug.simons@testplant.com> 2014-07-14 Doug Simons <doug.simons@testplant.com>
* Headers/NSMenu.h * Headers/NSMenu.h

View file

@ -1704,6 +1704,11 @@ to make sure syncing is handled properly in all cases.
[notificationCenter postNotificationName: NSTextDidEndEditingNotification [notificationCenter postNotificationName: NSTextDidEndEditingNotification
object: _notifObject]; object: _notifObject];
if (_tf.is_field_editor)
{
[[self undoManager] removeAllActions];
}
return YES; return YES;
} }