JAL-1616 loading of datasets from XML patched
[jalview.git] / src / jalview / gui / Jalview2XML.java
index aa2ae7a..4e72236 100644 (file)
@@ -4014,7 +4014,7 @@ public class Jalview2XML
       addDatasetRef(vamsasSet.getDatasetId(), ds);
     }
     // set the dataset for the newly imported alignment.
-    if (al.getDataset() == null)
+    if (al.getDataset() == null && !ignoreUnrefed)
     {
       al.setDataset(ds);
     }