Changeset 18778 in josm
- Timestamp:
- 2023-07-25T00:19:11+02:00 (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java
r17524 r18778 196 196 */ 197 197 private void resolve() { 198 final ConflictResolutionDialog dialog; 199 int index; 198 200 synchronized (this) { 199 201 if (conflicts == null || model.getSize() == 0) 200 202 return; 201 203 202 in t index = lstConflicts.getSelectedIndex();204 index = lstConflicts.getSelectedIndex(); 203 205 if (index < 0) { 204 206 index = 0; … … 206 208 207 209 Conflict<? extends OsmPrimitive> c = conflicts.get(index); 208 ConflictResolutionDialogdialog = new ConflictResolutionDialog(MainApplication.getMainFrame());210 dialog = new ConflictResolutionDialog(MainApplication.getMainFrame()); 209 211 dialog.getConflictResolver().populate(c); 210 dialog.showDialog(); 211 212 } 213 // This must not be synchronized. See #23079. 214 // On macOS, under some instances, the AppKit thread may want to lock this (`ConflictDialog`) in order to add a 215 // property change listener. This dialog currently locks the UI thread, so it *should* be safe to have outside 216 // of the synchronized lock. 217 dialog.showDialog(); 218 synchronized (this) { 212 219 if (index < conflicts.size() - 1) { 213 220 lstConflicts.setSelectedIndex(index);
Note:
See TracChangeset
for help on using the changeset viewer.