Return the name of last action in NSUndoManager.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37365 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Germán Arias 2013-11-06 01:52:54 +00:00
parent 2d8469f9d9
commit 3d3b039633
2 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-11-05 German Arias <germanandre@gmx.es>
* Source/NSUndoManager.m (-undoActionName): Try first with the name
of current group. If not, with the name of last object in undo stack.
2013-11-03 German Arias <germanandre@gmx.es>
* Source/NSUndoManager.m (-redoMenuTitleForUndoActionName:):

View file

@ -944,7 +944,15 @@
{
return nil;
}
return [[_undoStack lastObject] actionName];
if (_group != nil)
{
return [_group actionName];
}
else
{
return [[_undoStack lastObject] actionName];
}
}
/**