Changeset 13417 in josm


Ignore:
Timestamp:
2018-02-12T21:28:42+01:00 (9 months ago)
Author:
Don-vip
Message:

fix #14224: advanced preference jumpto.use.clipboard to disable "Jump to Position: automatically paste URL from clipboard" feature

File:
1 edited

Legend:

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

    r12792 r13417  
    2727import org.openstreetmap.josm.gui.widgets.JosmTextField;
    2828import org.openstreetmap.josm.gui.widgets.SelectAllOnFocusGainedDecorator;
     29import org.openstreetmap.josm.spi.preferences.Config;
    2930import org.openstreetmap.josm.tools.GBC;
    3031import org.openstreetmap.josm.tools.ImageProvider;
     
    108109                .ofNullable(ClipboardUtils.getClipboardStringContent())
    109110                .map(OsmUrlToBounds::parse);
    110         if (boundsFromClipboard.isPresent()) {
     111        if (boundsFromClipboard.isPresent() && Config.getPref().getBoolean("jumpto.use.clipboard", true)) {
    111112            setBounds(boundsFromClipboard.get());
    112113        } else {
Note: See TracChangeset for help on using the changeset viewer.