Changeset 23891 in osm
- Timestamp:
- 2010-10-27T23:48:41+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/AddressEdit/src/org/openstreetmap/josm/plugins/addressEdit/AddressEditAction.java
r23884 r23891 8 8 import java.util.Collection; 9 9 10 import org.openstreetmap.josm.Main; 10 11 import org.openstreetmap.josm.actions.JosmAction; 11 12 import org.openstreetmap.josm.data.SelectionChangedListener; … … 76 77 protected void updateEnabledState( 77 78 Collection<? extends OsmPrimitive> selection) { 78 setEnabled(selection != null && !selection.isEmpty()); 79 // Enable button if there is either a selection or at least a data set 80 setEnabled( selection != null && !selection.isEmpty() || 81 (getCurrentDataSet() != null)); 79 82 } 80 83
Note:
See TracChangeset
for help on using the changeset viewer.