Changeset 17657 in josm for trunk/src/org
- Timestamp:
- 2021-03-24T19:52:46+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMSLayerPanel.java
r17552 r17657 207 207 return false; 208 208 } 209 if (!endpoint.isSelected() && !getWmsUrl().isEmpty()) { 210 // if endpoint is not selected and imagery name and WMS URL is provided, allow adding imagery 211 // this is to cover the cases, when the user constructs URL on hers/his own 212 return true; 213 } 209 214 /* 210 215 * We need selection of the layers in following situations: 211 216 * * endpoint is not selected (and we don't care about setDefault layers as it's disabled anyway) 212 * * endpoint is selected and setDef ultLayers is selected217 * * endpoint is selected and setDefaultLayers is selected 213 218 */ 214 219 if ((!endpoint.isSelected() || setDefaultLayers.isSelected()) && (tree == null || tree.getSelectedLayers().isEmpty())) {
Note:
See TracChangeset
for help on using the changeset viewer.