Revision: 14681
          http://sourceforge.net/p/skim-app/code/14681
Author:   hofman
Date:     2024-11-13 17:06:09 +0000 (Wed, 13 Nov 2024)
Log Message:
-----------
Recent document info does not need update when the fileURL is nil

Modified Paths:
--------------
    trunk/SKMainDocument.m
    trunk/SKNotesDocument.m

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2024-11-13 16:22:32 UTC (rev 14680)
+++ trunk/SKMainDocument.m      2024-11-13 17:06:09 UTC (rev 14681)
@@ -1563,7 +1563,7 @@
 }
 
 - (BOOL)recentInfoNeedsUpdate {
-    return mdFlags.recentInfoNeedsUpdate;
+    return mdFlags.recentInfoNeedsUpdate && [self fileURL] != nil;
 }
 
 - (void)setRecentInfoNeedsUpdate:(BOOL)flag {

Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m     2024-11-13 16:22:32 UTC (rev 14680)
+++ trunk/SKNotesDocument.m     2024-11-13 17:06:09 UTC (rev 14681)
@@ -429,7 +429,7 @@
 }
 
 - (BOOL)recentInfoNeedsUpdate {
-    return ndFlags.recentInfoNeedsUpdate;
+    return ndFlags.recentInfoNeedsUpdate && [self fileURL] != nil;
 }
 
 - (void)setRecentInfoNeedsUpdate:(BOOL)flag {

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