mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 09:31:07 +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
7d519e603c
commit
169daabc3b
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>
|
2013-11-03 German Arias <germanandre@gmx.es>
|
||||||
|
|
||||||
* Source/NSUndoManager.m (-redoMenuTitleForUndoActionName:):
|
* Source/NSUndoManager.m (-redoMenuTitleForUndoActionName:):
|
||||||
|
|
|
@ -944,7 +944,15 @@
|
||||||
{
|
{
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
return [[_undoStack lastObject] actionName];
|
|
||||||
|
if (_group != nil)
|
||||||
|
{
|
||||||
|
return [_group actionName];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return [[_undoStack lastObject] actionName];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue