JAL-4407 don't transfer 'local' settings - leave as default 3d-structure annotation... bug/JAL-4407_no_sec_str_from_draganddrop_to_msa
authorJim Procter <jprocter@dundee.ac.uk>
Wed, 1 May 2024 15:15:15 +0000 (16:15 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Wed, 1 May 2024 15:15:15 +0000 (16:15 +0100)
src/jalview/gui/AssociatePdbFileWithSeq.java

index c9951f5..b2689be 100644 (file)
@@ -49,7 +49,7 @@ public class AssociatePdbFileWithSeq
           StructureSelectionManagerProvider ssmp)
   {
     return associatePdbWithSeq(choice, file, sequence, prompt, ssmp,
-            TFType.DEFAULT, null, true);
+            TFType.DEFAULT, null, false);
   }
 
   public PDBEntry associatePdbWithSeq(String choice, DataSourceType file,
@@ -97,9 +97,9 @@ public class AssociatePdbFileWithSeq
     {
       entry.setFile(choice);
       sequence.getDatasetSequence().addPDBId(entry);
+      entry.setStructureFile(pdbfile);
       StructureSelectionManager.getStructureSelectionManager(ssmp)
               .registerPDBEntry(entry);
-      entry.setStructureFile(pdbfile);
     }
     if (tft != null)
       entry.setProperty("TFType", tft.name());