Changeset 7690 in josm for trunk/src/org


Ignore:
Timestamp:
2014-11-01T23:33:54+01:00 (5 years ago)
Author:
stoecker
Message:

remove obsolete workaround (dynamic menu already prevented by putValue(toolbar, false)

File:
1 edited

Legend:

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

    r7463 r7690  
    200200        }
    201201        offsetAction.setEnabled(true);
    202         JMenu newMenu = new JMenu(trc("layer","Offset")) {
    203             // Hack to prevent ToolbarPreference from tracing this menu
    204             // TODO: Modify ToolbarPreference to not to trace such dynamic submenus?
    205             @Override
    206             public MenuElement[] getSubElements() {
    207                 return new MenuElement[0];
    208             }
    209         };
     202        JMenu newMenu = new JMenu(trc("layer","Offset"));
    210203        newMenu.setIcon(ImageProvider.get("mapmode", "adjustimg"));
    211204        newMenu.setAction(offsetAction);
Note: See TracChangeset for help on using the changeset viewer.