Changeset 11208 in josm for trunk/src/org
- Timestamp:
- 2016-11-01T20:14:19+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r11106 r11208 89 89 import org.openstreetmap.josm.gui.progress.ProgressMonitorExecutor; 90 90 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresets; 91 import org.openstreetmap.josm.gui.util.GuiHelper; 91 92 import org.openstreetmap.josm.gui.util.RedirectInputMap; 92 93 import org.openstreetmap.josm.io.FileWatcher; … … 804 805 */ 805 806 public static boolean exitJosm(boolean exit, int exitCode, SaveLayersDialog.Reason reason) { 806 if (SaveLayersDialog.saveUnsavedModifications(getLayerManager().getLayers(), reason != null ? reason : SaveLayersDialog.Reason.EXIT)) { 807 final boolean proceed = Boolean.TRUE.equals(GuiHelper.runInEDTAndWaitAndReturn(() -> 808 SaveLayersDialog.saveUnsavedModifications(getLayerManager().getLayers(), reason != null ? reason : SaveLayersDialog.Reason.EXIT))); 809 if (proceed) { 807 810 if (Main.main != null) { 808 811 Main.main.shutdown();
Note:
See TracChangeset
for help on using the changeset viewer.