mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
2d8469f9d9
commit
3d3b039633
2 changed files with 14 additions and 1 deletions
|
@ -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:):
|
||||
|
|
|
@ -944,7 +944,15 @@
|
|||
{
|
||||
return nil;
|
||||
}
|
||||
return [[_undoStack lastObject] actionName];
|
||||
|
||||
if (_group != nil)
|
||||
{
|
||||
return [_group actionName];
|
||||
}
|
||||
else
|
||||
{
|
||||
return [[_undoStack lastObject] actionName];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue