Revision: 16393
http://sourceforge.net/p/skim-app/code/16393
Author: hofman
Date: 2026-07-23 16:00:17 +0000 (Thu, 23 Jul 2026)
Log Message:
-----------
make sure pending edits are committed when closing bookmarks window
Modified Paths:
--------------
trunk/SKBookmarkController.m
Modified: trunk/SKBookmarkController.m
===================================================================
--- trunk/SKBookmarkController.m 2026-07-23 09:30:55 UTC (rev 16392)
+++ trunk/SKBookmarkController.m 2026-07-23 16:00:17 UTC (rev 16393)
@@ -240,6 +240,11 @@
[[statusBar leftField] setStringValue:message ?: @""];
}
+- (void)windowWillClose:(NSNotification *)notification {
+ if ([[[self window] firstResponder] isKindOfClass:[NSTextView class]])
+ [[self window] makeFirstResponder:nil];
+}
+
- (void)saveBookmarksData {
if (bookmarksCache == nil)
bookmarksCache = [[bookmarkRoot children] valueForKey:@"properties"];
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