Revision: 7057
http://skim-app.svn.sourceforge.net/skim-app/?rev=7057&view=rev
Author: hofman
Date: 2011-01-07 19:18:23 +0000 (Fri, 07 Jan 2011)
Log Message:
-----------
disable print toolbar item for locked documents
Modified Paths:
--------------
trunk/SKMainToolbarController.m
Modified: trunk/SKMainToolbarController.m
===================================================================
--- trunk/SKMainToolbarController.m 2011-01-07 18:44:58 UTC (rev 7056)
+++ trunk/SKMainToolbarController.m 2011-01-07 19:18:23 UTC (rev 7057)
@@ -800,6 +800,8 @@
return [mainController.pdfView.document isLocked] == NO;
} else if ([identifier
isEqualToString:SKDocumentToolbarRotateRightItemIdentifier] || [identifier
isEqualToString:SKDocumentToolbarRotateLeftItemIdentifier] || [identifier
isEqualToString:SKDocumentToolbarRotateLeftRightItemIdentifier] || [identifier
isEqualToString:SKDocumentToolbarCropItemIdentifier]) {
return [mainController.pdfView.document isLocked] == NO;
+ } else if ([identifier isEqualToString:NSToolbarPrintItemIdentifier]) {
+ return [mainController.pdfView.document isLocked] == NO;
}
return YES;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit