From 92e7512e2151b0dd336f3331252dde2c1365d7aa Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 18 Oct 2017 17:17:30 +0100 Subject: [PATCH] JAL-2779 switch order for updating the current alignment frame reference in response to gain/lost focus events --- src/jalview/gui/Desktop.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index ad80ca5..8ca22b5 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -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(); }; -- 1.7.10.2