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/gui/mappaint/MapPaintMenu.java

    r16438 r16509  
    6464
    6565        @Override
     66        protected boolean listenToSelectionChange() {
     67            return false;
     68        }
     69
     70        @Override
    6671        public void updateEnabledState() {
    6772            setEnabled(MainApplication.isDisplayingMapView()
Note: See TracChangeset for help on using the changeset viewer.