Revision: 15658
          http://sourceforge.net/p/skim-app/code/15658
Author:   hofman
Date:     2025-07-15 14:15:05 +0000 (Tue, 15 Jul 2025)
Log Message:
-----------
discard editing in note windows when closing for revert

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2025-07-15 14:03:38 UTC (rev 15657)
+++ trunk/SKMainWindowController.m      2025-07-15 14:15:05 UTC (rev 15658)
@@ -1434,8 +1434,10 @@
     if ([notes count]) {
         NSArray *wcs = [[[self document] windowControllers] copy];
         for (NSWindowController *wc in wcs) {
-            if ([wc isNoteWindowController])
+            if ([wc isNoteWindowController]) {
+                [wc discardEditing];
                 [wc close];
+            }
         }
         
         [rightSideController.noteOutlineView resetRowHeights];

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



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to