Ignore:
Timestamp:
2017-04-13T23:04:03+02:00 (8 years ago)
Author:
donvip
Message:

fix #josm14311 - IAE: Listener (MapdustGUI) was not registered before or already removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/gui/MapdustGUI.java

    r32787 r33231  
    9393    private JPanel mainPanel;
    9494
    95     /** Specifies if the MapDust data was or not down-loaded */
    96     private boolean downloaded = false;
     95    /** Specifies if the MapDust data was or not downloaded */
     96    private boolean downloaded;
     97
     98    /** Remembers if the dialog has been destroyed */
     99    private boolean destroyed;
    97100
    98101    /**
     
    152155        downloaded = false;
    153156        button.setSelected(false);
    154         super.destroy();
     157        if (!destroyed) {
     158            super.destroy();
     159            destroyed = true;
     160        }
    155161    }
    156162
Note: See TracChangeset for help on using the changeset viewer.