Revision: 27696 http://sourceforge.net/p/bibdesk/svn/27696 Author: hofman Date: 2022-07-05 21:54:45 +0000 (Tue, 05 Jul 2022) Log Message: ----------- restore scroll position in main table after updating grouped items
Modified Paths: -------------- trunk/bibdesk/BibDocument_Groups.m Modified: trunk/bibdesk/BibDocument_Groups.m =================================================================== --- trunk/bibdesk/BibDocument_Groups.m 2022-07-05 21:26:10 UTC (rev 27695) +++ trunk/bibdesk/BibDocument_Groups.m 2022-07-05 21:54:45 UTC (rev 27696) @@ -608,14 +608,18 @@ } } - if ([parentsToReload count] == 1) + if ([parentsToReload count] == 1) { [self reloadParentGroup:[parentsToReload firstObject]]; - else if ([parentsToReload count]) + } else if ([parentsToReload count]) { [self reloadParentGroup:(id)parentsToReload]; - else if (isSelected) + } else if (isSelected) { + // fix for bug #1362191: after changing a checkbox that removed an item from a smart group, the table scrolled to the top + NSPoint scrollPoint = [tableView scrollPositionAsPercentage]; [self displaySelectedGroups]; - else + [tableView setScrollPositionAsPercentage:scrollPoint]; + } else { return NO; + } return YES; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit