JAL-2359 add Window menu entry only after all danger of error is passed
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 8 Dec 2016 09:20:08 +0000 (09:20 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 8 Dec 2016 09:20:08 +0000 (09:20 +0000)
src/jalview/gui/Desktop.java

index cc897e3..ac957d8 100644 (file)
@@ -890,9 +890,10 @@ public class Desktop extends jalview.jbgui.GDesktop implements
       }
     });
 
+    desktop.add(frame);
+
     windowMenu.add(menuItem);
 
-    desktop.add(frame);
     frame.toFront();
     try
     {