Changeset 19438 in josm
- Timestamp:
- 2025-08-26T13:54:39+02:00 (4 months ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java (modified) (3 diffs)
-
src/org/openstreetmap/josm/gui/dialogs/relation/IRelationEditor.java (modified) (1 diff)
-
src/org/openstreetmap/josm/gui/dialogs/relation/RelationEditor.java (modified) (1 diff)
-
src/org/openstreetmap/josm/gui/dialogs/relation/actions/SavingAction.java (modified) (2 diffs)
-
test/unit/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditorTest.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r19398 r19438 161 161 */ 162 162 private final ArrayList<FlavorListener> clipboardListeners = new ArrayList<>(); 163 /** 164 * Flag that signals that this instance of the relation editor is currently saving the relation 165 */ 166 private boolean isSaving; 163 167 164 168 /** … … 1071 1075 if (!isDirtyEditor()) { 1072 1076 reloadDataFromRelation(); 1073 } else { 1077 } else if (!isSaving) { 1074 1078 new Notification(tr("Relation modified outside of relation editor with pending changes. Conflict resolution required.")) 1075 1079 .setIcon(JOptionPane.WARNING_MESSAGE).show(); … … 1086 1090 tagEditorPanel.getModel().isDirty() || relation == null || relation.getDataSet() == null; 1087 1091 } 1092 1093 @Override 1094 public void setIsSaving(boolean b) { 1095 isSaving = b; 1096 } 1088 1097 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/IRelationEditor.java
r19399 r19438 67 67 68 68 /** 69 * Set the isSaving flag to the given value. See #24444 70 * @param b the flag value 71 * @since 19438 72 */ 73 void setIsSaving(boolean b); 74 75 /** 69 76 * Reloads data from relation. 70 77 */ -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationEditor.java
r19432 r19438 116 116 @Override 117 117 public final void setRelation(Relation relation) { 118 setIsSaving(false); // see #24444 118 119 setRelationSnapshot((relation == null) ? null : new Relation(relation)); 119 120 Relation oldValue = this.relation; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/SavingAction.java
r19398 r19438 172 172 return false; 173 173 } 174 getEditor().setIsSaving(true); // see #24444 174 175 applyExistingConflictingRelation(getTagModel()); 175 176 hideEditor(); … … 178 179 return false; 179 180 } else { 181 getEditor().setIsSaving(true); // see #24444 180 182 applyExistingNonConflictingRelation(getTagModel()); 181 183 } -
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditorTest.java
r19398 r19438 122 122 public OsmDataLayer getLayer() { 123 123 return layer; 124 } 125 126 @Override 127 public void setIsSaving(boolean b) { 128 // do nothing 124 129 } 125 130 };
Note:
See TracChangeset
for help on using the changeset viewer.
