Revision: 29336
http://sourceforge.net/p/bibdesk/svn/29336
Author: hofman
Date: 2025-07-23 09:02:56 +0000 (Wed, 23 Jul 2025)
Log Message:
-----------
rename variable, add items from array instead of array
Modified Paths:
--------------
trunk/bibdesk/BibDocument_UI.m
Modified: trunk/bibdesk/BibDocument_UI.m
===================================================================
--- trunk/bibdesk/BibDocument_UI.m 2025-07-23 08:48:26 UTC (rev 29335)
+++ trunk/bibdesk/BibDocument_UI.m 2025-07-23 09:02:56 UTC (rev 29336)
@@ -1448,13 +1448,13 @@
[publications reindexPublications:@[pub]];
if ([changedKey isNoteField] == NO && [changedKey isGeneralURLField] == NO
&& [changedKey isIntegerField] == NO && [changedKey
isEqualToString:BDSKPubTypeString] == NO) {
- NSArray *crossreffedItems = [publications itemsForCrossref:key];
- if ([crossreffedItems count]) {
+ NSArray *crossrefChildren = [publications itemsForCrossref:key];
+ if ([crossrefChildren count]) {
// invalidate groups that depend on inherited values
- [crossreffedItems
makeObjectsPerformSelector:@selector(resetGroups)];
+ [crossrefChildren
makeObjectsPerformSelector:@selector(resetGroups)];
if (shouldReindex)
- [publications reindexPublications:crossreffedItems];
- [changedPublications addObject:crossreffedItems];
+ [publications reindexPublications:crossrefChildren];
+ [changedPublications addObjectsFromArray:crossrefChildren];
// all inherited fields could change when parent is created, needs
full UI update
if ([changedKey isEqualToString:BDSKCiteKeyString])
changedKey = nil;
@@ -1461,9 +1461,9 @@
}
if (oldKey) {
// change the crossrefs if we change the parent cite key
- crossreffedItems = [publications itemsForCrossref:oldKey];
- if ([crossreffedItems count]) {
- for (BibItem *aPub in [crossreffedItems copy])
+ crossrefChildren = [publications itemsForCrossref:oldKey];
+ if ([crossrefChildren count]) {
+ for (BibItem *aPub in [crossrefChildren copy])
[aPub setField:BDSKCrossrefString toValue:key];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit