Changeset 7434 in josm for trunk/src/org/openstreetmap/josm/actions/DeleteAction.java
- Timestamp:
- 2014-08-20T03:07:15+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DeleteAction.java
r6380 r7434 13 13 import org.openstreetmap.josm.tools.Shortcut; 14 14 15 /** 16 * Action that deletes selected objects. 17 * @since 770 18 */ 15 19 public final class DeleteAction extends JosmAction { 16 20 21 /** 22 * Constructs a new {@code DeleteAction}. 23 */ 17 24 public DeleteAction() { 18 25 super(tr("Delete"), "dialogs/delete", tr("Delete selected objects."), … … 23 30 @Override 24 31 public void actionPerformed(ActionEvent e) { 25 if (!isEnabled()) 26 return; 27 if(!Main.map.mapView.isActiveLayerVisible()) 32 if (!isEnabled() || !Main.map.mapView.isActiveLayerVisible()) 28 33 return; 29 34 org.openstreetmap.josm.actions.mapmode.DeleteAction.doActionPerformed(e);
Note:
See TracChangeset
for help on using the changeset viewer.
