JAL-3144 close SequenceFetcher before opening PDB/Uniprot panel
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 30 Oct 2018 12:43:26 +0000 (12:43 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 30 Oct 2018 12:43:26 +0000 (12:43 +0000)
src/jalview/gui/SequenceFetcher.java

index f9d7760..7ef9613 100755 (executable)
@@ -187,13 +187,13 @@ public class SequenceFetcher extends JPanel implements Runnable
 
         if ("pdb".equalsIgnoreCase(currentSelection))
         {
-          new PDBFTSPanel(SequenceFetcher.this);
           frame.dispose();
+          new PDBFTSPanel(SequenceFetcher.this);
         }
         else if ("uniprot".equalsIgnoreCase(currentSelection))
         {
-          new UniprotFTSPanel(SequenceFetcher.this);
           frame.dispose();
+          new UniprotFTSPanel(SequenceFetcher.this);
         }
         else
         {