Fix for [CPUndoManager removeAllActions] not clearing the current groupings as well.

Closes #1002.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2010-11-17 12:21:09 -08:00
parent 80ec35fd0a
commit bd15d2f331
+8
View File
@@ -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;