Changeset 10793 in josm
- Timestamp:
- 2016-08-13T17:08:58+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListPopup.java
r9949 r10793 10 10 import java.util.ArrayList; 11 11 import java.util.Arrays; 12 import java.util.Collections; 12 13 import java.util.List; 13 14 … … 75 76 List<Action> actions; 76 77 if (selectedLayers.size() == 1) { 77 actions = Arrays.asList(selectedLayers.get(0).getMenuEntries()); 78 Action[] entries = selectedLayers.get(0).getMenuEntries(); 79 actions = entries != null ? Arrays.asList(entries) : Collections.emptyList(); 78 80 } else { 79 81 // Very simple algorithm - first selected layer has actions order as in getMenuEntries, actions from other layers go to the end
Note:
See TracChangeset
for help on using the changeset viewer.