Return a item title in NSUndoManger. Even if actionName is null.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37356 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Germán Arias 2013-11-03 19:40:31 +00:00
parent 9956ef64e1
commit 9530102d98
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2013-11-03 German Arias <germanandre@gmx.es>
* Source/NSUndoManager.m (-redoMenuTitleForUndoActionName:):
* Source/NSUndoManager.m (-undoMenuTitleForUndoActionName:):
Return "Redo" and "Undo", respectively, if actionName is null.
If not, it removes the item title.
2013-11-01 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSAttributedString.m: Use exact equality test when removing

View file

@ -695,7 +695,7 @@
return [NSString stringWithFormat: @"%@ %@", _(@"Redo"), actionName];
}
}
return actionName;
return _(@"Redo");
}
/**
@ -975,7 +975,7 @@
return [NSString stringWithFormat: @"%@ %@", _(@"Undo"), actionName];
}
}
return actionName;
return _(@"Undo");
}
/**