Revision: 16761
http://sourceforge.net/p/skim-app/code/16761
Author: hofman
Date: 2026-10-31 17:25:33 +0000 (Sat, 31 Oct 2026)
Log Message:
-----------
set label for current document setup when fileURL of document is nil
Modified Paths:
--------------
trunk/NSDocument_SKExtensions.m
trunk/SKBookmark.m
Modified: trunk/NSDocument_SKExtensions.m
===================================================================
--- trunk/NSDocument_SKExtensions.m 2026-10-31 15:56:26 UTC (rev 16760)
+++ trunk/NSDocument_SKExtensions.m 2026-10-31 17:25:33 UTC (rev 16761)
@@ -133,6 +133,8 @@
NSData *data = [alias data];
if (data)
[setup setObject:data forKey:[alias isBookmark] ?
SKDocumentSetupBookmarkKey : SKDocumentSetupAliasKey];
+ } else {
+ [setup setObject:[self displayName] forKey:@"label"];
}
NSWindow *window = [self primaryWindow];
Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m 2026-10-31 15:56:26 UTC (rev 16760)
+++ trunk/SKBookmark.m 2026-10-31 17:25:33 UTC (rev 16761)
@@ -365,7 +365,7 @@
NSMutableArray *aChildren = [NSMutableArray array];
SKBookmark *child;
for (NSDictionary *setup in aSetupDicts) {
- if ((child = [[SKBookmark alloc] initWithSetup:setup label:nil])) {
+ if ((child = [[SKBookmark alloc] initWithSetup:setup label:[setup
objectForKey:LABEL_KEY]])) {
[aChildren addObject:child];
}
}
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