Changeset 18288 in josm


Ignore:
Timestamp:
2021-10-21T01:40:33+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #21451 - disallow to edit deleted child relations from parent editor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ChildRelationBrowser.java

    r17202 r18288  
    212212    /**
    213213     * Action for editing the currently selected relation
    214      *
    215      *
    216214     */
    217215    class EditAction extends AbstractAction implements TreeSelectionListener {
     
    235233            for (int i = 0; i < Math.min(selection.length, 10); i++) {
    236234                Relation r = (Relation) selection[i].getLastPathComponent();
    237                 if (r.isIncomplete()) {
     235                if (!r.isUsable()) {
    238236                    continue;
    239237                }
Note: See TracChangeset for help on using the changeset viewer.