Revision: 22926 http://sourceforge.net/p/bibdesk/svn/22926 Author: hofman Date: 2018-11-04 18:06:19 +0000 (Sun, 04 Nov 2018) Log Message: ----------- fix check for delete of pubs and groups, check for groups was erroneously used for pubs
Modified Paths: -------------- trunk/bibdesk/BibDocument_DataSource.m Modified: trunk/bibdesk/BibDocument_DataSource.m =================================================================== --- trunk/bibdesk/BibDocument_DataSource.m 2018-11-04 15:06:20 UTC (rev 22925) +++ trunk/bibdesk/BibDocument_DataSource.m 2018-11-04 18:06:19 UTC (rev 22926) @@ -884,7 +884,7 @@ - (BOOL)tableView:(NSTableView *)tv canDeleteRowsWithIndexes:(NSIndexSet *)rowIndexes { if (tv == tableView || tv == [fileSearchController tableView]) { - return [rowIndexes count] > 0 && NSNotFound == [[self selectedGroups] indexOfObjectPassingTest:^BOOL(id obj, NSUInteger idx, BOOL *stop){ return [obj allowsRemoval] == NO; }]; + return [self hasGroupTypeSelected:BDSKExternalGroupType] == NO && [rowIndexes count] > 0; } return NO; } @@ -1412,9 +1412,7 @@ - (BOOL)outlineView:(NSOutlineView *)ov canDeleteItems:(NSArray *)items { if (ov == groupOutlineView) { - return NSNotFound != [items indexOfObjectPassingTest:^BOOL(id obj, NSUInteger idx, BOOL *stop){ - return 0 != ([obj groupType] & BDSKRemovableGroupType); - }]; + return NSNotFound == [items indexOfObjectPassingTest:^BOOL(id obj, NSUInteger idx, BOOL *stop){ return [obj allowsRemoval] == NO; }]; } return NO; } 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