JAL-2560 alternative fix (reinstate lost line of code)
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 8 Aug 2017 15:44:45 +0000 (16:44 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 8 Aug 2017 15:44:45 +0000 (16:44 +0100)
src/jalview/viewmodel/AlignmentViewport.java

index 70f16d9..2881e81 100644 (file)
@@ -641,22 +641,13 @@ public abstract class AlignmentViewport implements AlignViewportI,
     {
       if (getConservationSelected())
       {
-        int retry = 0;
-        synchronized (this)
-        {
-          while (isCalcInProgress() && retry < 10)
-          {
-            try
-            {
-              wait(50);
-              retry++;
-            } catch (InterruptedException e)
-            {
-            }
-          }
-        }
         residueShading.setConservation(hconservation);
       }
+      /*
+       * reset conservation flag in case just set to false if
+       * Conservation was null (calculation still in progress)
+       */
+      residueShading.setConservationApplied(getConservationSelected());
       residueShading.alignmentChanged(alignment, hiddenRepSequences);
     }