Changeset 17270 in josm


Ignore:
Timestamp:
2020-10-26T21:40:13+01:00 (4 weeks ago)
Author:
Don-vip
Message:

fix #19997 - Disable MapPaint style submenu for empty settings (patch by jBeata, modified)

File:
1 edited

Legend:

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

    r15731 r17270  
    4545        submenu.setIcon(group.icon);
    4646        // Add the "toggle all settings" action
    47         if (settings.size() >= 2) {
     47        if (settings.isEmpty()) {
     48            submenu.setEnabled(false);
     49        } else if (settings.size() >= 2) {
    4850            JMenuItem item = new JMenuItem(new AbstractAction(tr("Toggle all settings")) {
    4951                @Override
Note: See TracChangeset for help on using the changeset viewer.