Revision: 29087
http://sourceforge.net/p/bibdesk/svn/29087
Author: hofman
Date: 2025-03-01 17:36:01 +0000 (Sat, 01 Mar 2025)
Log Message:
-----------
get real category group before editing
Modified Paths:
--------------
trunk/bibdesk/BibDocument_Groups.m
Modified: trunk/bibdesk/BibDocument_Groups.m
===================================================================
--- trunk/bibdesk/BibDocument_Groups.m 2025-03-01 17:14:14 UTC (rev 29086)
+++ trunk/bibdesk/BibDocument_Groups.m 2025-03-01 17:36:01 UTC (rev 29087)
@@ -861,17 +861,6 @@
}
- (void)editGroupWithoutWarning:(BDSKGroup *)group {
- if (0 != ([group groupType] & BDSKCategoryGroupType) && [group document]
== nil) {
- for (BDSKCategoryParentGroup *parent in [groups categoryParents]) {
- if ([[parent key] isEqualToString:[(BDSKCategoryGroup *)group
key]]) {
- NSUInteger idx = [[parent categoryGroups] indexOfObject:group];
- if (idx == NSNotFound)
- return;
- group = [[parent categoryGroups] objectAtIndex:idx];
- break;
- }
- }
- }
if ([groupOutlineView isItemExpanded:[group parent]] == NO)
[groupOutlineView expandItem:[group parent]];
NSInteger i = [groupOutlineView rowForItem:group];
@@ -1230,7 +1219,9 @@
[self reloadParentGroup:parent withSelection:selectedGroups];
dispatch_async(dispatch_get_main_queue(), ^{
- [self editGroupWithoutWarning:group];
+ NSUInteger realIdx = [[parent categoryGroups] indexOfObject:group];
+ if (realIdx != NSNotFound)
+ [self editGroupWithoutWarning:[[parent categoryGroups]
objectAtIndex:realIdx]];
});
}
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