Revision: 29341
          http://sourceforge.net/p/bibdesk/svn/29341
Author:   hofman
Date:     2025-07-23 15:30:38 +0000 (Wed, 23 Jul 2025)
Log Message:
-----------
use new value from notification for note text views

Modified Paths:
--------------
    trunk/bibdesk/BDSKEditor.m

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2025-07-23 15:02:53 UTC (rev 29340)
+++ trunk/bibdesk/BDSKEditor.m  2025-07-23 15:30:38 UTC (rev 29341)
@@ -2387,18 +2387,15 @@
     else if([changeKey isNoteField]){
         if(editorFlags.ignoreFieldChange == NO) {
             if (currentEditedView && [[currentEditedView identifier] 
isEqualToString:changeKey]) {
-                // make sure we are getting the actual current value rather 
than the edited value
-                [publication setEditedField:nil];
-                [currentEditedView setString:[publication 
valueOfField:changeKey inherit:NO] ?: @""];
-                [publication setEditedField:changeKey];
+                [currentEditedView setString:newValue ?: @""];
                 // undo actions in the text view are now invalid
                 [textViewUndoManager removeAllActions];
             } else if ([changeKey isEqualToString:BDSKAnnoteString]) {
-                [notesView setString:[publication 
valueOfField:BDSKAnnoteString inherit:NO] ?: @""];
+                [notesView setString:newValue ?: @""];
             } else if ([changeKey isEqualToString:BDSKAbstractString]) {
-                [abstractView setString:[publication 
valueOfField:BDSKAbstractString inherit:NO] ?: @""];
+                [abstractView setString:newValue ?: @""];
             } else if ([changeKey isEqualToString:BDSKRssDescriptionString]) {
-                [rssDescriptionView setString:[publication 
valueOfField:BDSKRssDescriptionString inherit:NO] ?: @""];
+                [rssDescriptionView setString:newValue ?: @""];
             }
         }
     }

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

Reply via email to