Changeset 11551 in josm


Ignore:
Timestamp:
2017-02-11T20:25:23+01:00 (3 years ago)
Author:
Don-vip
Message:

fix #14353 - add synchronization to MainPanel

File:
1 edited

Legend:

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

    r10975 r11551  
    4444     * @param showMap If the map should be displayed.
    4545     */
    46     protected void updateContent(boolean showMap) {
     46    protected synchronized void updateContent(boolean showMap) {
    4747        GuiHelper.assertCallFromEdt();
    4848        MapFrame old = map;
     
    109109     * @return {@code true} if the listeners collection changed as a result of the call.
    110110     */
    111     public boolean addAndFireMapFrameListener(MapFrameListener listener) {
     111    public synchronized boolean addAndFireMapFrameListener(MapFrameListener listener) {
    112112        boolean changed = addMapFrameListener(listener);
    113113        if (changed && map != null) {
     
    139139     * @return The panel.
    140140     */
    141     public GettingStarted getGettingStarted() {
     141    public synchronized GettingStarted getGettingStarted() {
    142142        if (gettingStarted == null) {
    143143            gettingStarted = new GettingStarted();
Note: See TracChangeset for help on using the changeset viewer.