mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-09 04:07:12 +00:00
Fix for [CPUndoManager removeAllActions] not clearing the current groupings as well.
Closes #1002. Reviewed by me.
This commit is contained in:
@@ -594,6 +594,14 @@ if (_currentGroup == nil)
|
||||
*/
|
||||
- (void)removeAllActions
|
||||
{
|
||||
// Close off any groupings.
|
||||
while (_currentGrouping)
|
||||
[self endUndoGrouping];
|
||||
|
||||
// Won't need this anymore
|
||||
[self _unregisterWithRunLoop];
|
||||
|
||||
_state = CPUndoManagerNormal;
|
||||
_redoStack = [];
|
||||
_undoStack = [];
|
||||
_disableCount = 0;
|
||||
|
||||
Reference in New Issue
Block a user