- Timestamp:
- 2018-10-13T02:11:26+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPreset.java
r14290 r14319 483 483 return DIALOG_ANSWER_CANCEL; 484 484 } else if (p.getComponentCount() != 0 && (sel.isEmpty() || p.hasElements)) { 485 String title = trn("Change {0} object", "Change {0} objects", sel.size(), sel.size()); 486 if (!showNewRelation && sel.isEmpty()) { 485 int size = sel.size(); 486 String title = trn("Change {0} object", "Change {0} objects", size, size); 487 if (!showNewRelation && size == 0) { 487 488 if (originalSelectionEmpty) { 488 489 title = tr("Nothing selected!"); … … 492 493 } 493 494 494 boolean disableApply = false;495 if (! sel.isEmpty()) {495 boolean disableApply = size == 0; 496 if (!disableApply) { 496 497 OsmData<?, ?, ?, ?> ds = sel.iterator().next().getDataSet(); 497 498 disableApply = ds != null && ds.isLocked();
Note:
See TracChangeset
for help on using the changeset viewer.