Ignore:
Timestamp:
2020-05-27T11:16:39+02:00 (4 years ago)
Author:
GerdP
Message:

see #19296: Actions should avoid to install listeners which are not needed

  • either don't call installAdapters() or overwrite listenToSelectionChange()
  • partly reverts previous changes so that installAdapters() is not overwritten

One has to be careful because installAdapters() also calls initEnabledState()

File:
1 edited

Legend:

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

    r14397 r16509  
    2727        super(tr("Download data..."), "download", tr("Download map data from a server of your choice"),
    2828              Shortcut.registerShortcut("file:download", tr("File: {0}", tr("Download data")), KeyEvent.VK_DOWN, Shortcut.CTRL_SHIFT),
    29               true);
     29              true, false);
    3030        setHelpId(ht("/Action/Download"));
    3131    }
Note: See TracChangeset for help on using the changeset viewer.