Changeset 32667 in osm


Ignore:
Timestamp:
2016-07-17T14:33:31+02:00 (9 years ago)
Author:
simon04
Message:

JOSM/wikipedia: use updateEnabledStateOnCurrentSelection

Location:
applications/editors/josm/plugins/wikipedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wikipedia/build.xml

    r32387 r32667  
    55    <property name="commit.message" value="Commit message"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="10369"/>
     7    <property name="plugin.main.version" value="10409"/>
    88    <property name="plugin.canloadatruntime" value="true"/>
    99
  • applications/editors/josm/plugins/wikipedia/src/org/wikipedia/FetchWikidataAction.java

    r32424 r32667  
    158158    @Override
    159159    protected void updateEnabledState() {
    160         DataSet ds = getLayerManager().getEditDataSet();
    161         if (ds == null) {
    162             setEnabled(false);
    163         } else {
    164             updateEnabledState(ds.getSelected());
    165         }
     160        updateEnabledStateOnCurrentSelection();
    166161    }
    167162
Note: See TracChangeset for help on using the changeset viewer.