- Timestamp:
- 2019-11-12T23:28:15+01:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JosmAction.java
r15404 r15521 279 279 SelectionEventManager.getInstance().removeSelectionListener(selectionChangeAdapter); 280 280 } 281 MainApplication.getToolbar().unregister(this); 281 282 } 282 283 -
trunk/src/org/openstreetmap/josm/gui/ImageryMenu.java
r15154 r15521 17 17 import java.util.Map; 18 18 import java.util.Map.Entry; 19 import java.util.Optional;20 19 import java.util.stream.Collectors; 21 20 … … 301 300 private void removeDynamicItem(Object item) { 302 301 if (item instanceof JMenuItem) { 303 Optional.ofNullable(((JMenuItem) item).getAction()).ifPresent(MainApplication.getToolbar()::unregister);304 302 remove((JMenuItem) item); 305 303 } else if (item instanceof MenuComponent) {
Note:
See TracChangeset
for help on using the changeset viewer.