Changeset 18729 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2023-05-16T18:32:14+02:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r18705 r18729 178 178 // This listener gets called _prior to_ the reorder event. If we do not delay the execution of the 179 179 // model update, then the image will change instead of remaining the same. 180 this.layers.getModel().addChangeListener(l -> MainApplication.worker.execute(() -> GuiHelper.runInEDT(() -> { 181 Component selected = this.layers.getSelectedComponent(); 182 if (selected instanceof MoveImgDisplayPanel) { 183 ((MoveImgDisplayPanel<?>) selected).fireModelUpdate(); 184 } 185 }))); 180 this.layers.getModel().addChangeListener(l -> { 181 // We need to check to see whether or not the worker is shut down. See #22922 for details. 182 if (!MainApplication.worker.isShutdown()) { 183 MainApplication.worker.execute(() -> GuiHelper.runInEDT(() -> { 184 Component selected = this.layers.getSelectedComponent(); 185 if (selected instanceof MoveImgDisplayPanel) { 186 ((MoveImgDisplayPanel<?>) selected).fireModelUpdate(); 187 } 188 })); 189 }}); 186 190 } 187 191
Note:
See TracChangeset
for help on using the changeset viewer.