Revision: 16739
http://sourceforge.net/p/skim-app/code/16739
Author: hofman
Date: 2026-10-28 18:23:35 +0000 (Wed, 28 Oct 2026)
Log Message:
-----------
don't resolve fileURL to find bookmarks for current document
Modified Paths:
--------------
trunk/SKBookmarkController.m
Modified: trunk/SKBookmarkController.m
===================================================================
--- trunk/SKBookmarkController.m 2026-10-28 18:09:00 UTC (rev 16738)
+++ trunk/SKBookmarkController.m 2026-10-28 18:23:35 UTC (rev 16739)
@@ -655,7 +655,7 @@
- (SKBookmark *)currentDocumentBookmark {
NSURL *fileURL = [[[[NSApp mainWindow] windowController] document]
fileURL];
if (fileURL) {
- NSArray *currentBookmarks = [[[self bookmarkRoot] entireContents]
filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"fileURL = %@",
fileURL]];
+ NSArray *currentBookmarks = [[[self bookmarkRoot] entireContents]
filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^(SKBookmark *bm,
NSDictionary *bindings){ return [bm hasFileURL:fileURL]; }]];
if ([currentBookmarks count] > 1) {
return [[SKBookmark alloc] initFolderWithChildren:[[NSArray alloc]
initWithArray:currentBookmarks copyItems:YES] label:NSLocalizedString(@"Current
Document", @"Menu item title")];
}
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