Ignore:
Timestamp:
2017-11-12T02:32:10+01:00 (2 years ago)
Author:
Don-vip
Message:

fix #12086 - fix EDT violation when no file exporter is found + choose note exporter by default when saving a note layer

File:
1 edited

Legend:

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

    r12894 r13115  
    2121import org.openstreetmap.josm.gui.layer.Layer;
    2222import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     23import org.openstreetmap.josm.gui.util.GuiHelper;
    2324import org.openstreetmap.josm.gui.widgets.AbstractFileChooser;
    2425import org.openstreetmap.josm.spi.preferences.Config;
     
    105106            }
    106107            if (!exported) {
    107                 JOptionPane.showMessageDialog(Main.parent, tr("No Exporter found! Nothing saved."), tr("Warning"),
    108                         JOptionPane.WARNING_MESSAGE);
     108                GuiHelper.runInEDTAndWait(() ->
     109                    JOptionPane.showMessageDialog(Main.parent, tr("No Exporter found! Nothing saved."), tr("Warning"),
     110                        JOptionPane.WARNING_MESSAGE));
    109111                return false;
    110112            } else if (canceled) {
Note: See TracChangeset for help on using the changeset viewer.