JAL-1616 loading of datasets from XML patched Release_2_8_2_Branch
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 9 Dec 2014 12:21:20 +0000 (12:21 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 9 Dec 2014 12:21:20 +0000 (12:21 +0000)
src/jalview/gui/Jalview2XML.java

index d003cb0..cccf34d 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);
     }