Changeset 6938 in josm for trunk


Ignore:
Timestamp:
2014-03-28T20:32:10+01:00 (6 years ago)
Author:
Don-vip
Message:

see #9864 - fix regression from r6752: restore actions in toggle dialogs title bar contextual menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r6889 r6938  
    470470        private final JLabel lblTitle;
    471471        private final JComponent lblTitle_weak;
    472         private final DialogPopupMenu popupMenu = new DialogPopupMenu();
    473472        /** the button which shows whether buttons are dynamic or not */
    474473        private final JButton buttonsHide;
     474        /** the contextual menu **/
     475        private DialogPopupMenu popupMenu;
    475476
    476477        public TitleBar(String toggleDialogName, String iconName) {
     
    619620
    620621        public final void registerMouseListener() {
     622            popupMenu = new DialogPopupMenu();
    621623            addMouseListener(new MouseEventHandler());
    622624        }
     
    626628                super(popupMenu);
    627629            }
    628             @Override public void mouseClicked(MouseEvent e) {
     630            @Override
     631            public void mouseClicked(MouseEvent e) {
    629632                if (SwingUtilities.isLeftMouseButton(e)) {
    630633                    if (isCollapsed) {
Note: See TracChangeset for help on using the changeset viewer.