diff --git a/javafx-ui-controls/src/javafx/scene/control/cell/CheckBoxTreeCell.java b/javafx-ui-controls/src/javafx/scene/control/cell/CheckBoxTreeCell.java --- a/javafx-ui-controls/src/javafx/scene/control/cell/CheckBoxTreeCell.java +++ b/javafx-ui-controls/src/javafx/scene/control/cell/CheckBoxTreeCell.java @@ -305,6 +305,8 @@ private ObservableValue booleanProperty; + private BooleanProperty indeterminateProperty; + /*************************************************************************** @@ -506,9 +508,9 @@ if (booleanProperty != null) { checkBox.selectedProperty().unbindBidirectional((BooleanProperty)booleanProperty); } -// if (indeterminateProperty != null) { -// checkBox.indeterminateProperty().unbindBidirectional(indeterminateProperty); -// } + if (indeterminateProperty != null) { + checkBox.indeterminateProperty().unbindBidirectional(indeterminateProperty); + } // install new bindings. // We special case things when the TreeItem is a CheckBoxTreeItem @@ -517,8 +519,8 @@ booleanProperty = cbti.selectedProperty(); checkBox.selectedProperty().bindBidirectional((BooleanProperty)booleanProperty); -// indeterminateProperty = cbti.indeterminateProperty(); -// checkBox.indeterminateProperty().bindBidirectional(indeterminateProperty); + indeterminateProperty = cbti.indeterminateProperty(); + checkBox.indeterminateProperty().bindBidirectional(indeterminateProperty); } else { booleanProperty = callback.call(getTreeItem()); if (booleanProperty != null) {