Merge branch 'bug/JAL-2687concurrentModification' into features/JAL-2608closeOverview
[jalview.git] / src / jalview / gui / AlignmentPanel.java
index 25f44c5..6a59cd2 100644 (file)
@@ -1609,6 +1609,7 @@ public class AlignmentPanel extends GAlignmentPanel implements
     if (annotationPanel != null)
     {
       annotationPanel.dispose();
+      annotationPanel = null;
     }
 
     if (av != null)
@@ -1638,9 +1639,15 @@ public class AlignmentPanel extends GAlignmentPanel implements
    */
   protected void closeChildFrames()
   {
+    if (overviewPanel != null)
+    {
+      overviewPanel.dispose();
+      overviewPanel = null;
+    }
     if (calculationDialog != null)
     {
       calculationDialog.closeFrame();
+      calculationDialog = null;
     }
   }