Changeset 5262 in josm for trunk


Ignore:
Timestamp:
2012-06-02T15:49:16+02:00 (7 years ago)
Author:
bastiK
Message:

fixed #6004 - Dialog was already created exeception

File:
1 edited

Legend:

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

    r5240 r5262  
    185185
    186186    /**
    187      * Wheather or not the java vm is openjdk
     187     * Whether or not the java vm is openjdk
    188188     * We use this to work around openjdk bugs
    189189     */
     
    359359     * Add a new layer to the map. If no map exists, create one.
    360360     */
    361     public final void addLayer(final Layer layer) {
     361    public final synchronized void addLayer(final Layer layer) {
    362362        if (map == null) {
    363363            final MapFrame mapFrame = new MapFrame(contentPanePrivate);
Note: See TracChangeset for help on using the changeset viewer.