Changeset 12863 in josm for trunk


Ignore:
Timestamp:
2017-09-14T23:42:00+02:00 (2 years ago)
Author:
Don-vip
Message:

fix #15249 - synchronize accesses to MapStatus help text

File:
1 edited

Legend:

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

    r12846 r12863  
    10141014     * @param text The text
    10151015     */
    1016     public void setHelpText(Object id, final String text) {
     1016    public synchronized void setHelpText(Object id, final String text) {
    10171017        StatusTextHistory entry = new StatusTextHistory(id, text);
    10181018
     
    10301030     * @param id The id passed to {@link #setHelpText(Object, String)}
    10311031     */
    1032     public void resetHelpText(Object id) {
     1032    public synchronized void resetHelpText(Object id) {
    10331033        if (statusText.isEmpty())
    10341034            return;
Note: See TracChangeset for help on using the changeset viewer.