Changeset 11093 in josm for trunk/src/org/openstreetmap/josm/actions/RestartAction.java
- Timestamp:
- 2016-10-07T21:55:54+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/RestartAction.java
r10212 r11093 17 17 import org.openstreetmap.josm.Main; 18 18 import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec; 19 import org.openstreetmap.josm.gui.io.SaveLayersDialog; 19 20 import org.openstreetmap.josm.tools.ImageProvider; 20 21 import org.openstreetmap.josm.tools.Shortcut; … … 59 60 String scriptRestart = System.getProperty("josm.restart"); 60 61 if ("true".equals(scriptRestart)) { 61 Main.exitJosm(true, 9 );62 Main.exitJosm(true, 9, SaveLayersDialog.Reason.RESTART); 62 63 } 63 64 … … 83 84 */ 84 85 public static void restartJOSM() throws IOException { 85 if (isRestartSupported() && !Main.exitJosm(false, 0 )) return;86 if (isRestartSupported() && !Main.exitJosm(false, 0, SaveLayersDialog.Reason.RESTART)) return; 86 87 final List<String> cmd; 87 88 // special handling for OSX .app package
Note:
See TracChangeset
for help on using the changeset viewer.