Revision: 7083
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7083&view=rev
Author:   hofman
Date:     2011-01-30 10:39:32 +0000 (Sun, 30 Jan 2011)

Log Message:
-----------
disable password menu item when the document is fully unlocked

Modified Paths:
--------------
    trunk/SKMainWindowController_UI.m

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2011-01-26 11:08:49 UTC (rev 7082)
+++ trunk/SKMainWindowController_UI.m   2011-01-30 10:39:32 UTC (rev 7083)
@@ -1521,7 +1521,7 @@
     } else if (action == @selector(performFit:)) {
         return [self interactionMode] == SKNormalMode && [[self pdfDocument] 
isLocked] == NO;
     } else if (action == @selector(password:)) {
-        return [self interactionMode] != SKPresentationMode && [[self 
pdfDocument] isEncrypted];
+        return [self interactionMode] != SKPresentationMode && ([[self 
pdfDocument] isLocked] || [[self pdfDocument] allowsPrinting] == NO || [[self 
pdfDocument] allowsCopying] == NO);
     } else if (action == @selector(toggleReadingBar:)) {
         if ([[self pdfView] hasReadingBar])
             [menuItem setTitle:NSLocalizedString(@"Hide Reading Bar", @"Menu 
item title")];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to