Revision: 30092
          http://sourceforge.net/p/bibdesk/svn/30092
Author:   hofman
Date:     2026-03-01 17:40:51 +0000 (Sun, 01 Mar 2026)
Log Message:
-----------
always try autofiling when adding or replacing linked file or URL when not 
using drop

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

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2026-03-01 16:15:33 UTC (rev 30091)
+++ trunk/bibdesk/BDSKEditor.m  2026-03-01 17:40:51 UTC (rev 30092)
@@ -1641,7 +1641,7 @@
     if (oldURL)
         [[self document] userRemovedURL:oldURL forPublication:publication];
     [[self document] userAddedURL:newURL forPublication:publication];
-    if (([NSEvent standardModifierFlags] & NSEventModifierFlagCommand) == 0 && 
[aFile isFile] && [publication autoFileLinkedFile:aFile])
+    if ((info == nil || ([NSEvent standardModifierFlags] & 
NSEventModifierFlagCommand) == 0) && [aFile isFile] && [publication 
autoFileLinkedFile:aFile])
         [self updateStatusForAutoGenerate:BDSKAutoFiled];
     return YES;
 }
@@ -1666,7 +1666,7 @@
     
     BDSKAutoGenerateStatus mask = 0;
     
-    if (([NSEvent standardModifierFlags] & NSEventModifierFlagCommand) == 0) {
+    if (info == nil || ([NSEvent standardModifierFlags] & 
NSEventModifierFlagCommand) == 0) {
         for (BDSKLinkedFile *aFile in files) {
             if ([aFile isFile] && [publication autoFileLinkedFile:aFile])
                 mask |= BDSKAutoFiled;

Modified: trunk/bibdesk/BibDocument_DataSource.m
===================================================================
--- trunk/bibdesk/BibDocument_DataSource.m      2026-03-01 16:15:33 UTC (rev 
30091)
+++ trunk/bibdesk/BibDocument_DataSource.m      2026-03-01 17:40:51 UTC (rev 
30092)
@@ -1618,7 +1618,7 @@
     if (oldURL)
         [self userRemovedURL:oldURL forPublication:publication];
     [self userAddedURL:newURL forPublication:publication];
-    if (([NSEvent standardModifierFlags] & NSEventModifierFlagCommand) == 0)
+    if ((info == nil || ([NSEvent standardModifierFlags] & 
NSEventModifierFlagCommand) == 0) && [aFile isFile])
         [publication autoFileLinkedFile:aFile];
     
     return YES;
@@ -1645,7 +1645,7 @@
     for (NSURL *aURL in absoluteURLs)
         [self userAddedURL:aURL forPublication:publication];
     
-    if (([NSEvent standardModifierFlags] & NSEventModifierFlagCommand) == 0) {
+    if (info == nil || ([NSEvent standardModifierFlags] & 
NSEventModifierFlagCommand) == 0) {
         for (BDSKLinkedFile *aFile in files) {
             if ([aFile isFile])
                 [publication autoFileLinkedFile:aFile];

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