Index: sources/gui/qml/pages/treatment/TreatmentHome.qml =================================================================== diff -u -rf723048b0efe2edf7cb08b9bba2ef67c55917503 -r84198e30233360f405d25f462801b94c73177e85 --- sources/gui/qml/pages/treatment/TreatmentHome.qml (.../TreatmentHome.qml) (revision f723048b0efe2edf7cb08b9bba2ef67c55917503) +++ sources/gui/qml/pages/treatment/TreatmentHome.qml (.../TreatmentHome.qml) (revision 84198e30233360f405d25f462801b94c73177e85) @@ -128,14 +128,6 @@ height : 60 visible : ! _alarmBar.visible && text - property int source: -1 - - onTextChanged: { - if (text === "") { - source = -1 - } - } - CloseButton { id: _dismissButton objectName: "_dismissButton" anchors { @@ -153,55 +145,43 @@ Connections { target: vTreatmentAdjustmentBloodFlowRate function onAdjustmentTriggered ( vValue ) { if (vTreatmentAdjustmentBloodFlowRate.adjustment_Accepted) { - if (_notification.source === 0) { - _notification.text = "" - } + _notification.text = "" } else { _notification.text = vTreatmentAdjustmentBloodFlowRate.text() - _notification.source = 0 } } } Connections { target: vTreatmentAdjustmentDialysateFlowRate function onAdjustmentTriggered ( vValue ) { if (vTreatmentAdjustmentDialysateFlowRate.adjustment_Accepted) { - if (_notification.source === 1) { - _notification.text = "" - } + _notification.text = "" } else { _notification.text = vTreatmentAdjustmentDialysateFlowRate.text() - _notification.source = 1 } } } Connections { target: vTreatmentAdjustmentDialysateTemperature function onAdjustmentTriggered ( vValue ) { if (vTreatmentAdjustmentDialysateTemperature.adjustment_Accepted) { - if (_notification.source === 2) { - _notification.text = "" - } + _notification.text = "" } else { _notification.text = vTreatmentAdjustmentDialysateTemperature.text() - _notification.source = 2 } } } Connections { target: vTreatmentAdjustmentPressuresWidening function onAdjustmentTriggered ( vValue ) { if (vTreatmentAdjustmentPressuresWidening.adjustment_Accepted) { - if (_notification.source === 3) { - _notification.text = "" - } + _notification.text = "" } else { _notification.text = vTreatmentAdjustmentPressuresWidening.text() - _notification.source = 3 } } }