Index: sources/gui/qml/pages/pretreatment/create/PreTreatmentCreate.qml =================================================================== diff -u -r642f08650a7a88ad6a2305fdea6bd18365aab5c7 -rc1e20965a961f16ab27e0daf33cafd1f435edf4d --- sources/gui/qml/pages/pretreatment/create/PreTreatmentCreate.qml (.../PreTreatmentCreate.qml) (revision 642f08650a7a88ad6a2305fdea6bd18365aab5c7) +++ sources/gui/qml/pages/pretreatment/create/PreTreatmentCreate.qml (.../PreTreatmentCreate.qml) (revision c1e20965a961f16ab27e0daf33cafd1f435edf4d) @@ -148,10 +148,6 @@ mObject.active = true } } - else { // already active - mObject.enabled = true - mObject.active = true - } } } @@ -170,6 +166,12 @@ adjustable : _heparinDispensingRateSwitch.checked inActiveZero : true enableAdjustButtons: _heparinDispensingRateSwitch.checked + onActiveChanged: { + // Update the state of the heparin stop time slider to match activeness + // of this slider + _heparinStopTime.active = _heparinDispensingRate.active + _heparinStopTime.enabled= _heparinDispensingRate.active + } // ToDo: create a component for Switch, // ToDo: Consider putting the new CheckBox component into the SliderCreateTreatment component and set via boolean property