- Timestamp:
- 2018-05-26T18:21:19+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java
r13797 r13847 371 371 return; 372 372 if (oldMapMode != null) { 373 if (restoreOldMode || getValue() == ExtendedDialog.DialogClosedOtherwise) {373 if (restoreOldMode || (!exitingMode && getValue() == ExtendedDialog.DialogClosedOtherwise)) { 374 374 map.selectMapMode(oldMapMode); 375 375 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java
r13453 r13847 10 10 import java.util.Collection; 11 11 import java.util.Collections; 12 13 import javax.swing.Action; 12 14 13 15 import org.openstreetmap.josm.actions.JosmAction; … … 21 23 import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener; 22 24 import org.openstreetmap.josm.tools.ImageProvider; 25 import org.openstreetmap.josm.tools.Logging; 23 26 import org.openstreetmap.josm.tools.Shortcut; 24 27 … … 69 72 */ 70 73 public void enterMode() { 74 Logging.debug("Entering map mode: {0}", getValue(Action.NAME)); 71 75 putValue("active", Boolean.TRUE); 72 76 Config.getPref().addPreferenceChangeListener(this); … … 80 84 */ 81 85 public void exitMode() { 86 Logging.debug("Exiting map mode: {0}", getValue(Action.NAME)); 82 87 putValue("active", Boolean.FALSE); 83 88 Config.getPref().removePreferenceChangeListener(this);
Note:
See TracChangeset
for help on using the changeset viewer.