Revision: 27458
          http://sourceforge.net/p/bibdesk/svn/27458
Author:   hofman
Date:     2022-05-22 15:08:53 +0000 (Sun, 22 May 2022)
Log Message:
-----------
check for cite key changes after checking for cite key changes in parent

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

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2022-05-22 15:06:12 UTC (rev 27457)
+++ trunk/bibdesk/BDSKEditor.m  2022-05-22 15:08:53 UTC (rev 27458)
@@ -2424,12 +2424,7 @@
                [self resetFieldsIfNeeded];
                [self updateTypePopup];
        }
-       else if([changeKey isEqualToString:BDSKCiteKeyString]){
-               [citeKeyField setStringValue:[publication citeKey]];
-               [self updateCiteKeyAutoGenerateStatus];
-        [self updateCiteKeyDuplicateWarning];
-       }
-       else if([changeKey isEqualToString:BDSKCrossrefString] || 
+       else if([changeKey isEqualToString:BDSKCrossrefString] ||
           (parentDidChange && [changeKey isEqualToString:BDSKCiteKeyString])){
         // Reset if the crossref changed, or our parent's cite key changed.
         // If we are editing a crossref field, we should first set the new 
value, because resetFields will set the edited value. This happens when it is 
set through drag/drop
@@ -2446,6 +2441,11 @@
                [authorTableView reloadData];
                [self synchronizeWindowTitleWithDocumentName];
        }
+    else if([changeKey isEqualToString:BDSKCiteKeyString]){
+        [citeKeyField setStringValue:[publication citeKey]];
+        [self updateCiteKeyAutoGenerateStatus];
+        [self updateCiteKeyDuplicateWarning];
+    }
     else if([changeKey isNoteField]){
         if(editorFlags.ignoreFieldChange == NO) {
             if([changeKey isEqualToString:BDSKAnnoteString]){

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

Reply via email to