Ignore:
Timestamp:
2014-02-06T00:03:52+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #9662 - correct handling of canceled gpx export

File:
1 edited

Legend:

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

    r6643 r6815  
    6868        try {
    6969            boolean exported = false;
     70            boolean canceled = false;
    7071            for (FileExporter exporter : ExtensionFileFilter.exporters) {
    7172                if (exporter.acceptFile(file, layer)) {
    7273                    exporter.exportData(file, layer);
    7374                    exported = true;
     75                    canceled = exporter.isCanceled();
    7476                    break;
    7577                }
     
    7880                JOptionPane.showMessageDialog(Main.parent, tr("No Exporter found! Nothing saved."), tr("Warning"),
    7981                        JOptionPane.WARNING_MESSAGE);
     82                return false;
     83            } else if (canceled) {
    8084                return false;
    8185            }
Note: See TracChangeset for help on using the changeset viewer.