Ignore:
Timestamp:
17.01.2010 11:56:07 (2 years ago)
Author:
jttt
Message:

Removed ToggleDialog.tearDown(). All listeners should be unregistered in hideNotify()

File:
1 edited

Legend:

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

    r2710 r2869  
    159159        } 
    160160 
    161         MapView.addEditLayerChangeListener(this); 
    162     } 
    163  
    164     @Override 
    165     public void tearDown() { 
    166         MapView.removeEditLayerChangeListener(this); 
    167161    } 
    168162 
     
    170164    public void showNotify() { 
    171165        DataSet.selListeners.add(this); 
     166        MapView.addEditLayerChangeListener(this); 
    172167        updateSelection(); 
    173168    } 
     
    176171    public void hideNotify() { 
    177172        DataSet.selListeners.remove(this); 
     173        MapView.removeEditLayerChangeListener(this); 
    178174    } 
    179175 
Note: See TracChangeset for help on using the changeset viewer.