mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Futher improvements to NSUndoManager.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20593 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c4a389549a
commit
566ede417f
2 changed files with 15 additions and 2 deletions
|
@ -582,7 +582,7 @@
|
|||
*/
|
||||
- (void) redo
|
||||
{
|
||||
NSString *name = [NSString stringWithString: [self redoActionName]];
|
||||
NSString *name = nil;
|
||||
|
||||
if (_isUndoing || _isRedoing)
|
||||
{
|
||||
|
@ -604,6 +604,8 @@
|
|||
groupToRedo = RETAIN([_redoStack lastObject]);
|
||||
[_redoStack removeLastObject];
|
||||
|
||||
name = [NSString stringWithString: [groupToRedo actionName]];
|
||||
|
||||
oldGroup = _group;
|
||||
_group = nil;
|
||||
_isRedoing = YES;
|
||||
|
@ -965,7 +967,7 @@
|
|||
*/
|
||||
- (void) undoNestedGroup
|
||||
{
|
||||
NSString *name = [NSString stringWithString: [self undoActionName]];
|
||||
NSString *name = nil;
|
||||
PrivateUndoGroup *oldGroup;
|
||||
PrivateUndoGroup *groupToUndo;
|
||||
|
||||
|
@ -1011,6 +1013,8 @@
|
|||
[_undoStack removeLastObject];
|
||||
}
|
||||
|
||||
name = [NSString stringWithString: [groupToUndo actionName]];
|
||||
|
||||
[self beginUndoGrouping];
|
||||
[groupToUndo perform];
|
||||
RELEASE(groupToUndo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue