improved as per aparajita

This commit is contained in:
Blair Duncan committed 2013-03-07 22:18:59 -05:00
1 parent 7d51a34d11
commit 62670a4fa4
1 file changed
+2 -1
+2 -1
View File
@@ -218,6 +218,7 @@ var _CPUndoGroupingParentKey = @"_CPUndoGroupingParentKey",
_redoStack = [];
_undoStack = [];
_disableCount = 0;
_state = CPUndoManagerNormal;
[self setRunLoopModes:[CPDefaultRunLoopMode]];
@@ -576,7 +577,7 @@ if (_currentGroup == nil)
*/
- (BOOL)isUndoRegistrationEnabled
{
return !_disableCount;
return _disableCount == 0;
}
// Checking Whether Undo or Redo Is Being Performed