Changeset 29388 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetDialog.java
- Timestamp:
- 2013-03-23T18:45:59+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetDialog.java
r29386 r29388 214 214 } else 215 215 selectedOffset = null; 216 NavigatableComponent.removeZoomChangeListener(this); 217 setVisible(false); 216 boolean closeDialog = MODAL || selectedOffset == null 217 || selectedOffset instanceof CalibrationObject 218 || Main.pref.getBoolean("iodb.close.on.select", true); 219 if( closeDialog ) { 220 NavigatableComponent.removeZoomChangeListener(this); 221 setVisible(false); 222 } 218 223 if( !MODAL ) { 219 Main.map.mapView.removeTemporaryLayer(this); 220 Main.map.mapView.repaint(); 221 if( selectedOffset != null ) 224 if( closeDialog ) { 225 Main.map.mapView.removeTemporaryLayer(this); 226 Main.map.mapView.repaint(); 227 } 228 if( selectedOffset != null ) { 222 229 applyOffset(); 230 if( !closeDialog ) 231 updateButtonPanel(); 232 } 223 233 } 224 234 }
Note:
See TracChangeset
for help on using the changeset viewer.