Author: dpsimons
Date: Thu Jan  8 21:32:49 2015
New Revision: 38282

URL: http://svn.gna.org/viewcvs/gnustep?rev=38282&view=rev
Log:
Fix bug with fieldEditor undo history carrying across between fields

Modified:
    libs/gui/branches/gnustep_testplant_branch/ChangeLog
    libs/gui/branches/gnustep_testplant_branch/Source/NSTextView.m

Modified: libs/gui/branches/gnustep_testplant_branch/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/ChangeLog?rev=38282&r1=38281&r2=38282&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/ChangeLog        (original)
+++ libs/gui/branches/gnustep_testplant_branch/ChangeLog        Thu Jan  8 
21:32:49 2015
@@ -1,3 +1,9 @@
+2015-01-08  Doug Simons <[email protected]>
+
+       * Source/NSTextView.m: Fix bizarre behavior with undo/redo
+       actions carrying across between different fields with the
+       fieldEditor.
+
 2014-07-14  Doug Simons <[email protected]>
 
        * Headers/NSMenu.h

Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSTextView.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSTextView.m?rev=38282&r1=38281&r2=38282&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSTextView.m      
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSTextView.m      Thu Jan 
 8 21:32:49 2015
@@ -1703,6 +1703,11 @@
      yes, the notification name is misleading. */
   [notificationCenter postNotificationName: NSTextDidEndEditingNotification
       object: _notifObject];
+
+  if (_tf.is_field_editor)
+    {
+         [[self undoManager] removeAllActions];
+       }
 
   return YES;
 }


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to