JAL-629 dispose of non-displaying StructureChooser, removes zombie entry in Window...
authorBen Soares <b.soares@dundee.ac.uk>
Fri, 26 May 2023 11:07:26 +0000 (12:07 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Fri, 26 May 2023 11:07:26 +0000 (12:07 +0100)
src/jalview/gui/StructureChooser.java

index 1f39f3c..8423ed9 100644 (file)
@@ -1767,8 +1767,7 @@ public class StructureChooser extends GStructureChooser
               { seq }, viewerType);
     }
 
-    if (headless)
-      sc.mainFrame.dispose();
+    sc.mainFrame.dispose();
 
     if (showRefAnnotations)
       showReferenceAnnotationsForSequence(ap.alignFrame, seq);