Changeset 1571 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2009-05-05T16:10:24+02:00 (16 years ago)
Author:
stoecker
Message:

close #2505 - handling separator in toolbar prefs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java

    r1393 r1571  
    6767                for (TreePath selectedAction : actionsTree.getSelectionPaths()) {
    6868                    DefaultMutableTreeNode node = (DefaultMutableTreeNode) selectedAction.getLastPathComponent();
    69                     if (node.getUserObject() == null || node.getUserObject() instanceof Action) {
     69                    if (node.getUserObject() == null)
     70                        selected.add(leadItem++, null);
     71                    else if (node.getUserObject() == null || node.getUserObject() instanceof Action)
    7072                        selected.add(leadItem++, ((Action)node.getUserObject()).getValue("toolbar"));
    71                     }
    7273                }
    7374            } else if (e.getActionCommand().equals(">") && selectedList.getSelectedIndex() != -1) {
Note: See TracChangeset for help on using the changeset viewer.