Changeset 1770 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2009-07-12T09:37:16+02:00 (15 years ago)
Author:
Gubaer
Message:

fixed #2915: relation-editor: relation-only edit does not trigger uploadable change

Location:
trunk/src/org/openstreetmap/josm/gui/dialogs/relation
Files:
2 edited

Legend:

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

    r1764 r1770  
    544544            Main.main.undoRedo.add(new AddCommand(getClone()));
    545545            DataSet.fireSelectionChanged(Main.ds.getSelected());
    546         } else if (! getRelation().hasEqualSemanticAttributes(getClone())) {
     546        } else if (! getRelation().hasEqualSemanticAttributes(getClone()) || tagEditorModel.isDirty()) {
    547547            tagEditorModel.applyToPrimitive(getClone());
    548548            Main.main.undoRedo.add(new ChangeCommand(getRelation(), getClone()));
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/TagEditorModel.java

    r1762 r1770  
    457457        }
    458458    }
     459
     460    /**
     461     * replies true, if this model has been updated
     462     *
     463     * @return true, if this model has been updated
     464     */
     465    public boolean isDirty() {
     466        return dirty;
     467    }
    459468}
Note: See TracChangeset for help on using the changeset viewer.