Revision: 30070
http://sourceforge.net/p/bibdesk/svn/30070
Author: hofman
Date: 2026-02-26 18:35:56 +0000 (Thu, 26 Feb 2026)
Log Message:
-----------
don't set empty string as old or new value in notification info, consistent
with setting a field value
Modified Paths:
--------------
trunk/bibdesk/BDSKEditor.m
Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m 2026-02-26 18:23:24 UTC (rev 30069)
+++ trunk/bibdesk/BDSKEditor.m 2026-02-26 18:35:56 UTC (rev 30070)
@@ -2277,7 +2277,11 @@
[self userChangedField:field from:oldValue to:value];
} else {
// this is needed to update the search index and previews
- NSDictionary *notifInfo = @{BDSKBibItemKeyKey: field,
BDSKBibItemOldValueKey: oldValue, BDSKBibItemNewValueKey: value};
+ NSMutableDictionary *notifInfo = [NSMutableDictionary
dictionaryWithObject:field forKey:BDSKBibItemKeyKey];
+ if ([NSString isEmptyString:oldValue] == NO)
+ [notifInfo setObject:oldValue forKey:BDSKBibItemOldValueKey];
+ if ([NSString isEmptyString:value] == NO)
+ [notifInfo setObject:value forKey:BDSKBibItemNewValueKey];
[[NSNotificationCenter defaultCenter]
postNotificationName:BDSKBibItemChangedNotification
object:publication
userInfo:notifInfo];
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