Revision: 3145
http://skim-app.svn.sourceforge.net/skim-app/?rev=3145&view=rev
Author: hofman
Date: 2007-11-04 07:13:59 -0800 (Sun, 04 Nov 2007)
Log Message:
-----------
Disable undo for printInfo.
Modified Paths:
--------------
trunk/SKDocument.m
Modified: trunk/SKDocument.m
===================================================================
--- trunk/SKDocument.m 2007-11-04 13:12:41 UTC (rev 3144)
+++ trunk/SKDocument.m 2007-11-04 15:13:59 UTC (rev 3145)
@@ -150,8 +150,6 @@
[printInfo setOrientation:requiredOrientation];
[self setPrintInfo:printInfo];
[printInfo release];
- [[self undoManager] removeAllActions];
- [self updateChangeCount:NSChangeCleared];
}
}
@@ -1518,10 +1516,11 @@
}
- (void)setPrintInfo:(NSPrintInfo *)printInfo {
+ [[self undoManager] disableUndoRegistration];
[super setPrintInfo:printInfo];
+ [[self undoManager] enableUndoRegistration];
if (autoRotateButton)
autoRotate = [autoRotateButton state] == NSOnState;
- [self updateChangeCount:[[self undoManager] isUndoing] ? NSChangeDone :
NSChangeUndone];
}
- (BOOL)preparePageLayout:(NSPageLayout *)pageLayout {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit