Revision: 14736
          http://sourceforge.net/p/skim-app/code/14736
Author:   hofman
Date:     2024-11-21 16:21:37 +0000 (Thu, 21 Nov 2024)
Log Message:
-----------
change settimg reply

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

Modified: trunk/SKApplicationController.m
===================================================================
--- trunk/SKApplicationController.m     2024-11-21 15:35:47 UTC (rev 14735)
+++ trunk/SKApplicationController.m     2024-11-21 16:21:37 UTC (rev 14736)
@@ -323,10 +323,11 @@
                     aReply = [self application:NSApp printFiles:nextFileNames 
withSettings:printSettings showPrintPanels:showPrintPanels];
                 else
                     aReply = NSPrintingSuccess;
-                if (reply == NSNotFound)
+                if (aReply != NSPrintingReplyLater) {
+                    if (reply == NSPrintingReplyLater)
+                        [NSApp replyToOpenOrPrint:aReply == NSPrintingSuccess 
? NSApplicationDelegateReplySuccess : NSApplicationDelegateReplyFailure];
                     reply = aReply;
-                else if (reply == NSPrintingReplyLater && aReply != 
NSPrintingReplyLater)
-                    [NSApp replyToOpenOrPrint:aReply == NSPrintingSuccess ? 
NSApplicationDelegateReplySuccess : NSApplicationDelegateReplyFailure];
+                }
             };
             [document printDocumentWithSettings:printSettings 
showPrintPanel:showPrintPanels delegate:self 
didPrintSelector:@selector(document:didPrint:contextInfo:) contextInfo:(void 
*)CFBridgingRetain(block)];
         } else {

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



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to