Skip to content
Permalink
Browse files

reactive primary turnout listener when secondary unset

  • Loading branch information...
icklesteve committed Aug 3, 2019
1 parent 27acabd commit a83ae2a97ccff3b3e746ee5eb633a9b2df68ad2b
Showing with 1 addition and 1 deletion.
  1. +1 −1 java/src/jmri/jmrit/display/layoutEditor/LayoutTurnout.java
@@ -1150,11 +1150,11 @@ public void setSecondTurnout(@Nullable String tName) {
}
if (turnout != null) {
secondNamedTurnout = InstanceManager.getDefault(jmri.NamedBeanHandleManager.class).getNamedBeanHandle(secondTurnoutName, turnout);
activateTurnout();
} else {
secondTurnoutName = "";
secondNamedTurnout = null;
}
activateTurnout(); // Even if secondary is null, the primary Turnout may still need to be re-activated
if ((getTurnoutType() == RH_TURNOUT)
|| (getTurnoutType() == LH_TURNOUT)
|| (getTurnoutType() == WYE_TURNOUT)) {

0 comments on commit a83ae2a

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