Changeset 14547 in josm


Ignore:
Timestamp:
2018-12-10T15:34:13+01:00 (7 months ago)
Author:
GerdP
Message:

see #17040 revert r14546 Sometimes tries to remove listener twice

Location:
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManager.java

    r14546 r14547  
    6565import org.openstreetmap.josm.io.NetworkManager;
    6666import org.openstreetmap.josm.io.OnlineResource;
    67 import org.openstreetmap.josm.tools.Destroyable;
    6867import org.openstreetmap.josm.tools.ImageProvider;
    6968import org.openstreetmap.josm.tools.InputMapUtils;
     
    105104            instance.setVisible(true);
    106105            instance.dispose();
    107             for (Component c : instance.pnlChangesetDetailTabs.getComponents()) {
    108                 if (c instanceof Destroyable) {
    109                     ((Destroyable) c).destroy();
    110                 }
    111             }
    112106            instance = null;
    113107        }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetDetailPanel.java

    r14546 r14547  
    4646import org.openstreetmap.josm.io.NetworkManager;
    4747import org.openstreetmap.josm.io.OnlineResource;
    48 import org.openstreetmap.josm.tools.Destroyable;
    4948import org.openstreetmap.josm.tools.ImageProvider;
    5049import org.openstreetmap.josm.tools.Utils;
     
    5655 * @since 2689
    5756 */
    58 public class ChangesetDetailPanel extends JPanel implements PropertyChangeListener, ChangesetAware, Destroyable {
     57public class ChangesetDetailPanel extends JPanel implements PropertyChangeListener, ChangesetAware {
    5958
    6059    // CHECKSTYLE.OFF: SingleSpaceSeparator
     
    478477        return currentChangeset;
    479478    }
    480 
    481     @Override
    482     public void destroy() {
    483         MainApplication.getLayerManager().removeActiveLayerChangeListener(actSelectInCurrentLayer);
    484         MainApplication.getLayerManager().removeActiveLayerChangeListener(actZoomInCurrentLayerAction);
    485     }
    486479}
Note: See TracChangeset for help on using the changeset viewer.