Changeset 8964 in josm


Ignore:
Timestamp:
2015-10-27T23:40:20+01:00 (3 years ago)
Author:
simon04
Message:

see #10730 - Way splitting: add preference key to disable segment selection dialog

Setting the preference key splitway.segment-selection-dialog to false
disables the segment selection dialog and selects the longest way chunk.

File:
1 edited

Legend:

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

    r8963 r8964  
    199199            final Way wayToKeep = Strategy.keepLongestChunk().determineWayToKeep(newWays);
    200200
    201             if (ExpertToggleAction.isExpert() && !selectedWay.isNew()) {
     201            if (ExpertToggleAction.isExpert() && !selectedWay.isNew() && Main.pref.getBoolean("splitway.segment-selection-dialog", true)) {
    202202                final ExtendedDialog dialog = new SegmentToKeepSelectionDialog(selectedWay, newWays, wayToKeep, sel);
    203203                dialog.setModal(false);
Note: See TracChangeset for help on using the changeset viewer.