From: Jim Procter Date: Wed, 5 Oct 2016 20:49:04 +0000 (+0100) Subject: JAL-2036 rebuild menus for each panel before adding to splitframe X-Git-Tag: Release_2_10_0~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b77b421174a30ae35e0aa0a44c7e8dca8de72d80;p=jalview.git JAL-2036 rebuild menus for each panel before adding to splitframe --- diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index d24daa1..9a8e5f6 100644 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -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"); }