JAL-2779 switch order for updating the current alignment frame reference in response...
authorJim Procter <jprocter@issues.jalview.org>
Wed, 18 Oct 2017 16:17:30 +0000 (17:17 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 18 Oct 2017 16:17:30 +0000 (17:17 +0100)
src/jalview/gui/Desktop.java

index ad80ca5..8ca22b5 100644 (file)
@@ -868,6 +868,10 @@ public class Desktop extends jalview.jbgui.GDesktop
         JInternalFrame itf = desktop.getSelectedFrame();
         if (itf != null)
         {
+          if (itf instanceof AlignFrame)
+          {
+            Jalview.setCurrentAlignFrame((AlignFrame) itf);
+          }
           itf.requestFocus();
         }
       }
@@ -897,11 +901,8 @@ public class Desktop extends jalview.jbgui.GDesktop
         JInternalFrame itf = desktop.getSelectedFrame();
         if (itf != null)
         {
-          itf.requestFocus();
-          if (itf instanceof AlignFrame)
-          {
-            Jalview.setCurrentAlignFrame((AlignFrame) itf);
-          }
+          // itf.requestFocus();
+          //
         }
         System.gc();
       };