Revision: 30083
          http://sourceforge.net/p/bibdesk/svn/30083
Author:   hofman
Date:     2026-02-28 17:17:45 +0000 (Sat, 28 Feb 2026)
Log Message:
-----------
Make correct statement conditional on field

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

Modified: trunk/bibdesk/BibDocument_Groups.m
===================================================================
--- trunk/bibdesk/BibDocument_Groups.m  2026-02-28 16:57:21 UTC (rev 30082)
+++ trunk/bibdesk/BibDocument_Groups.m  2026-02-28 17:17:45 UTC (rev 30083)
@@ -1396,9 +1396,9 @@
     }
        
        if(count > 0){
+        [[self undoManager] setActionName:NSLocalizedString(@"Add To Group", 
@"Undo action name")];
         if([changedPubs count])
-            [[self undoManager] setActionName:NSLocalizedString(@"Add To 
Group", @"Undo action name")];
-        [self userChangedField:field ofPublications:changedPubs from:oldValues 
to:newValues];
+            [self userChangedField:field ofPublications:changedPubs 
from:oldValues to:newValues];
     }
     
     return YES;
@@ -1448,7 +1448,7 @@
             
                        if(rv == BDSKFieldActionSet || rv == 
BDSKFieldActionAppend){
                                tmpCount++;
-                if(field){
+                if(field && [field isEqualToString:BDSKPubTypeString] == NO){
                     [changedPubs addObject:pub];
                     [oldValues addObject:oldValue ?: @""];
                     [newValues addObject:[pub valueOfField:field]];

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