Index: sources/gui/qml/components/SliderCreateTreatment.qml =================================================================== diff -u -rfcfa029b4a6d30ff8aa8162de7573545f3cf7052 -r82afc5332958148ccd96d32d2c6337ed6131a772 --- sources/gui/qml/components/SliderCreateTreatment.qml (.../SliderCreateTreatment.qml) (revision fcfa029b4a6d30ff8aa8162de7573545f3cf7052) +++ sources/gui/qml/components/SliderCreateTreatment.qml (.../SliderCreateTreatment.qml) (revision 82afc5332958148ccd96d32d2c6337ed6131a772) @@ -135,18 +135,31 @@ anchors.left : _slider.right anchors.leftMargin : Variables.sliderAdjustButtonLeftMargin + // NOTE: @inActiveZero + // the slider which use inActiveZero are the once, with OFF button. + // these sliders have 0 as defalut to indicate OFF. + // when activated the first value they get is still the 0 ( OFF ). + // in that case we decrement once to get the correct minimum value. + // as example heparin dispensing after gets ON, firsrt decrement shows OFF ( 0 ). + // NOTE: if 0=defaultValue is in range (minimum < defaultValue < maximum), we still have problem, and needs more investigation onIncrementValue : { if ( _slider.isActive) { _slider.incrementValue(true) } else { setActiveValid() + if ( inActiveZero ) { // NOTE: @inActiveZero + _slider.decrementValue() + } } } onDecrementValue : { if ( _slider.isActive) { _slider.decrementValue(true) } else { setActiveValid() + if ( inActiveZero ) { // NOTE: @inActiveZero + _slider.decrementValue() + } } } }