JAL-2036 rebuild menus for each panel before adding to splitframe
authorJim Procter <jprocter@issues.jalview.org>
Wed, 5 Oct 2016 20:49:04 +0000 (21:49 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 5 Oct 2016 20:49:14 +0000 (21:49 +0100)
src/jalview/gui/Jalview2XML.java

index d24daa1..9a8e5f6 100644 (file)
@@ -2544,6 +2544,8 @@ public class Jalview2XML
           SplitFrame sf = createSplitFrame(dnaFrame, af);
           addedToSplitFrames.add(dnaFrame);
           addedToSplitFrames.add(af);
+          dnaFrame.setMenusForViewport();
+          af.setMenusForViewport();
           if (af.viewport.isGatherViewsHere())
           {
             gatherTo.add(sf);
@@ -2565,6 +2567,7 @@ public class Jalview2XML
         Viewport view = candidate.getKey();
         Desktop.addInternalFrame(af, view.getTitle(), view.getWidth(),
                 view.getHeight());
+        af.setMenusForViewport();
         System.err.println("Failed to restore view " + view.getTitle()
                 + " to split frame");
       }