Revision: 29056 http://sourceforge.net/p/bibdesk/svn/29056 Author: hofman Date: 2025-02-23 17:45:39 +0000 (Sun, 23 Feb 2025) Log Message: ----------- never edit the name of a groups whose name is not editable
Modified Paths: -------------- trunk/bibdesk/BibDocument_DataSource.m Modified: trunk/bibdesk/BibDocument_DataSource.m =================================================================== --- trunk/bibdesk/BibDocument_DataSource.m 2025-02-23 17:21:54 UTC (rev 29055) +++ trunk/bibdesk/BibDocument_DataSource.m 2025-02-23 17:45:39 UTC (rev 29056) @@ -1456,9 +1456,6 @@ #pragma mark NSControlTextEditingDelegate - (BOOL)control:(NSControl *)control textShouldBeginEditing:(NSText *)fieldEditor { - if ([[NSUserDefaults standardUserDefaults] boolForKey:BDSKWarnOnRenameGroupKey] == NO) - return YES; - NSInteger row = [groupOutlineView rowForView:control]; if (row == -1) return YES; @@ -1466,7 +1463,7 @@ BDSKGroup *group = [groupOutlineView itemAtRow:row]; if ([group isNameEditable] == NO) return NO; - else if ([group groupType] != BDSKCategoryGroupType) + else if ([[NSUserDefaults standardUserDefaults] boolForKey:BDSKWarnOnRenameGroupKey] == NO || [group groupType] != BDSKCategoryGroupType) return YES; NSAlert *alert = [[NSAlert alloc] init]; 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