Revision: 29372
http://sourceforge.net/p/bibdesk/svn/29372
Author: hofman
Date: 2025-07-26 16:31:24 +0000 (Sat, 26 Jul 2025)
Log Message:
-----------
display formatting errors in sheet when it doers not have recovery options
Modified Paths:
--------------
trunk/bibdesk/BDSKEditor.m
Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m 2025-07-26 16:04:41 UTC (rev 29371)
+++ trunk/bibdesk/BDSKEditor.m 2025-07-26 16:31:24 UTC (rev 29372)
@@ -2156,15 +2156,18 @@
if (err == nil)
return YES;
- BOOL isValid = [self presentError:err];
-
- if (control == citeKeyField && [err localizedRecoveryOptions] && isValid
== NO) {
- // user said to remove fragile characters
- NSCharacterSet *invalidSet = [[BDSKTypeManager sharedManager]
fragileCiteKeyCharacterSet];
- [control setStringValue:[obj
stringByReplacingCharactersInSet:invalidSet withString:@""]];
+ if ([err localizedRecoveryOptions]) {
+ BOOL isValid = [self presentError:err];
+ if (control == citeKeyField && isValid == NO) {
+ // user said to remove fragile characters
+ NSCharacterSet *invalidSet = [[BDSKTypeManager sharedManager]
fragileCiteKeyCharacterSet];
+ [control setStringValue:[obj
stringByReplacingCharactersInSet:invalidSet withString:@""]];
+ }
+ return isValid;
+ } else {
+ [self presentError:err modalForWindow:[self window] delegate:nil
didPresentSelector:NULL contextInfo:NULL];
+ return NO;
}
-
- return isValid;
}
- (void)controlTextDidEndEditing:(NSNotification *)notification{
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