Skip to content
Permalink
Browse files

Tweak code

  • Loading branch information...
dsand47 committed Aug 6, 2019
1 parent 9771e0d commit bb2a062a614c4cb472396939d1c8520df0625f88
Showing with 2 additions and 2 deletions.
  1. +2 −2 java/src/jmri/jmrit/display/layoutEditor/LayoutEditor.java
@@ -10695,7 +10695,7 @@ public void popupMenuWillBecomeVisible(PopupMenuEvent event) {
log.debug("PopupMenuWillBecomeVisible");
Set<Turnout> l = new HashSet<>();
comboBox.getManager().getNamedBeanSet().forEach((turnout) -> {
if (currentTurnouts == null || !currentTurnouts.contains(turnout)) {
if (!currentTurnouts.contains(turnout)) {
if (!validatePhysicalTurnout(turnout.getDisplayName(), null)) {
l.add(turnout);
}
@@ -10723,7 +10723,7 @@ public void popupMenuCanceled(PopupMenuEvent event) {
* @return A PopupMenuListener
*/
public TurnoutComboBoxPopupMenuListener newTurnoutComboBoxPopupMenuListener(NamedBeanComboBox<Turnout> comboBox) {
return newTurnoutComboBoxPopupMenuListener(comboBox, null);
return new TurnoutComboBoxPopupMenuListener(comboBox, new ArrayList<Turnout>());
}

/**

0 comments on commit bb2a062

Please sign in to comment.
You can’t perform that action at this time.