Revision: 7059
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7059&view=rev
Author:   hofman
Date:     2011-01-07 20:16:44 +0000 (Fri, 07 Jan 2011)

Log Message:
-----------
always allow to exit fullscreen or presentation mode

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

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2011-01-07 20:09:41 UTC (rev 7058)
+++ trunk/SKMainWindowController_UI.m   2011-01-07 20:16:44 UTC (rev 7059)
@@ -1506,13 +1506,13 @@
             [menuItem setTitle:NSLocalizedString(@"Remove Full Screen", @"Menu 
item title")];
         else
             [menuItem setTitle:NSLocalizedString(@"Full Screen", @"Menu item 
title")];
-        return [[self pdfDocument] isLocked] == NO;
+        return [self interactionMode] != SKNormalMode || [[self pdfDocument] 
isLocked] == NO;
     } else if (action == @selector(togglePresentation:)) {
         if ([self interactionMode] == SKPresentationMode)
             [menuItem setTitle:NSLocalizedString(@"Remove Presentation", 
@"Menu item title")];
         else
             [menuItem setTitle:NSLocalizedString(@"Presentation", @"Menu item 
title")];
-        return [[self pdfDocument] isLocked] == NO;
+        return [self interactionMode] != SKNormalMode || [[self pdfDocument] 
isLocked] == NO;
     } else if (action == @selector(enterFullScreen:) || action == 
@selector(enterPresentation:)) {
         return [[self pdfDocument] isLocked] == NO;
     } else if (action == @selector(getInfo:)) {


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
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to