Ignore:
Timestamp:
2017-03-03T22:37:42+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #14450 - Cannot add local imagery to toolbar

File:
1 edited

Legend:

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

    r11553 r11654  
    939939                selected.addElement(actionDefinition);
    940940            }
     941            actionsTreeModel.reload();
    941942        }
    942943
     
    10771078
    10781079    /**
     1080     * Registers an action to the toolbar preferences.
    10791081     * @param action Action to register
    10801082     * @return The parameter (for better chaining)
     
    10961098        }
    10971099        return action;
     1100    }
     1101
     1102    /**
     1103     * Unregisters an action from the toolbar preferences.
     1104     * @param action Action to unregister
     1105     * @return The removed action, or null
     1106     * @since 11654
     1107     */
     1108    public Action unregister(Action action) {
     1109        String toolbar = (String) action.getValue("toolbar");
     1110        if (toolbar != null) {
     1111            return regactions.remove(toolbar);
     1112        }
     1113        return null;
    10981114    }
    10991115
Note: See TracChangeset for help on using the changeset viewer.