JAL-1506 correct exit on close align frame
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 3 Oct 2014 11:01:34 +0000 (12:01 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 3 Oct 2014 11:01:34 +0000 (12:01 +0100)
src/jalview/workers/ConsensusThread.java
src/jalview/workers/ConservationThread.java
src/jalview/workers/StrucConsensusThread.java

index 69bdd24..c754ee3 100644 (file)
@@ -79,6 +79,7 @@ public class ConsensusThread extends AlignCalcWorker implements
       if (alignViewport.isClosed())
       {
         abortAndDestroy();
+        return;
       }
       AlignmentI alignment = alignViewport.getAlignment();
 
index 7ed50d8..a7180a0 100644 (file)
  */
 package jalview.workers;
 
-import java.util.ArrayList;
-import java.util.List;
-
 import jalview.analysis.Conservation;
 import jalview.api.AlignCalcWorkerI;
-import jalview.api.AlignmentViewPanel;
 import jalview.api.AlignViewportI;
+import jalview.api.AlignmentViewPanel;
 import jalview.datamodel.AlignmentAnnotation;
 import jalview.datamodel.AlignmentI;
 
+import java.util.ArrayList;
+import java.util.List;
+
 public class ConservationThread extends AlignCalcWorker implements
         AlignCalcWorkerI
 {
@@ -74,6 +74,7 @@ public class ConservationThread extends AlignCalcWorker implements
       if (alignViewport.isClosed())
       {
         abortAndDestroy();
+        return;
       }
       List<AlignmentAnnotation> ourAnnot = new ArrayList<AlignmentAnnotation>();
       AlignmentI alignment = alignViewport.getAlignment();
index 72d26ff..3230a36 100644 (file)
@@ -20,8 +20,6 @@
  */
 package jalview.workers;
 
-import java.util.Hashtable;
-
 import jalview.analysis.StructureFrequency;
 import jalview.api.AlignCalcWorkerI;
 import jalview.api.AlignViewportI;
@@ -31,6 +29,8 @@ import jalview.datamodel.AlignmentI;
 import jalview.datamodel.Annotation;
 import jalview.datamodel.SequenceI;
 
+import java.util.Hashtable;
+
 public class StrucConsensusThread extends AlignCalcWorker implements
         AlignCalcWorkerI
 {
@@ -74,6 +74,7 @@ public class StrucConsensusThread extends AlignCalcWorker implements
       if (alignViewport.isClosed())
       {
         abortAndDestroy();
+        return;
       }
       AlignmentI alignment = alignViewport.getAlignment();