Changeset 14471 in josm


Ignore:
Timestamp:
2018-12-01T11:40:47+01:00 (6 years ago)
Author:
GerdP
Message:

see #17040 Move call of UndoRedoHandler.removeCommandQueueListener() to the action that adds itself

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/relation/RecentRelationsAction.java

    r14248 r14471  
    112112    public void destroy() {
    113113        MainApplication.unregisterActionShortcut(launchAction, shortcut);
     114        UndoRedoHandler.getInstance().removeCommandQueueListener(this);
    114115        super.destroy();
    115116    }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java

    r14470 r14471  
    4646import org.openstreetmap.josm.actions.relation.SelectMembersAction;
    4747import org.openstreetmap.josm.actions.relation.SelectRelationAction;
    48 import org.openstreetmap.josm.data.UndoRedoHandler;
    4948import org.openstreetmap.josm.data.osm.DataSet;
    5049import org.openstreetmap.josm.data.osm.DefaultNameFormatter;
     
    210209    @Override
    211210    public void destroy() {
    212         UndoRedoHandler.getInstance().removeCommandQueueListener(recentRelationsAction);
    213211        recentRelationsAction.destroy();
     212        exportRelationFromFirstAction.setPrimitives(Collections.emptyList());
     213        exportRelationFromFirstToLayerAction.setPrimitives(Collections.emptyList());
     214        exportRelationFromLastAction.setPrimitives(Collections.emptyList());
     215        exportRelationFromLastToLayerAction.setPrimitives(Collections.emptyList());
    214216        model.clear();
    215217        super.destroy();
Note: See TracChangeset for help on using the changeset viewer.