Changeset 19432 in josm for trunk/src/org


Ignore:
Timestamp:
2025-08-05T07:47:47+02:00 (5 months ago)
Author:
GerdP
Message:

fix #24423: Relationeditor map sync broken

  • with #21840 some actions automatically update an open relation editor window if the relation is in sync with the dataset, else a notification about a pending conflict is shown. This logic was broken with r19402. This patch simplifies the logic in isDirtyRelation(): don't return false just because field relationSnapshot has no dataset.
File:
1 edited

Legend:

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

    r19402 r19432  
    153153    @Override
    154154    public final boolean isDirtyRelation(boolean ignoreUninterestingTags) {
    155         if (relation == null || relation.getDataSet() == null ||
    156             relationSnapshot == null || relationSnapshot.getDataSet() == null) {
    157             return false;
    158         }
    159 
    160         return !relation.hasEqualSemanticAttributes(relationSnapshot, ignoreUninterestingTags);
     155        return relation != null && !relation.hasEqualSemanticAttributes(relationSnapshot, ignoreUninterestingTags);
    161156    }
    162157
Note: See TracChangeset for help on using the changeset viewer.