JAL-4407 don't transfer 'local' settings - leave as default 3d-structure annotation...
[jalview.git] / 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());