Changeset 9020 in josm for trunk/src/org


Ignore:
Timestamp:
2015-11-18T00:46:21+01:00 (4 years ago)
Author:
Don-vip
Message:

fix EDT violation seen with "Download all children" action of relation editor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableModel.java

    r8863 r9020  
    3939import org.openstreetmap.josm.gui.dialogs.relation.sort.WayConnectionTypeCalculator;
    4040import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     41import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset;
    4142import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetHandler;
    42 import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset;
    4343import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetType;
     44import org.openstreetmap.josm.gui.util.GuiHelper;
    4445import org.openstreetmap.josm.gui.widgets.OsmPrimitivesTableModel;
    4546
     
    105106        // just trigger a repaint - the display name of the relation members may have changed
    106107        Collection<RelationMember> sel = getSelectedMembers();
    107         fireTableDataChanged();
     108        GuiHelper.runInEDTAndWait(new Runnable() {
     109            public void run() {
     110                fireTableDataChanged();
     111            }
     112        });
    108113        setSelectedMembers(sel);
    109114    }
Note: See TracChangeset for help on using the changeset viewer.