Ignore:
Timestamp:
2009-05-19T19:01:13+02:00 (16 years ago)
Author:
stoecker
Message:

fixed #2602 - patch by Matt,avar - Search keywords child and parent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginSelection.java

    r1591 r1603  
    3434import javax.swing.JOptionPane;
    3535import javax.swing.JPanel;
     36import javax.swing.UIManager;
    3637import javax.swing.event.HyperlinkEvent;
    3738import javax.swing.event.HyperlinkListener;
    3839import javax.swing.event.HyperlinkEvent.EventType;
    39 import javax.swing.UIManager;
    4040
    4141import org.openstreetmap.josm.Main;
     
    135135        if (pluginMap == null)
    136136            pluginMap = new HashMap<String, Boolean>();
    137         else
     137        else {
    138138            // Keep the map in bounds; possibly slightly pointless.
    139             for (final String pname : pluginMap.keySet())
    140                 if (availablePlugins.get(pname) == null) pluginMap.remove(pname);
     139            Set<String> pluginsToRemove = new HashSet<String>();
     140            for (final String pname : pluginMap.keySet()) {
     141                if (availablePlugins.get(pname) == null) pluginsToRemove.add(pname);
     142            }
     143           
     144            for (String pname : pluginsToRemove) {
     145                pluginMap.remove(pname);
     146            }
     147        }
    141148
    142149        pluginPanel.removeAll();
Note: See TracChangeset for help on using the changeset viewer.