Index: sources/gui/qml/pages/pretreatment/create/PreTreatmentCreateContent.qml =================================================================== diff -u -rc62102200fea4a7acdee773156e6647a30d77967 -r13d04e674e9d22091bcc72b97574bbba21fdc9c9 --- sources/gui/qml/pages/pretreatment/create/PreTreatmentCreateContent.qml (.../PreTreatmentCreateContent.qml) (revision c62102200fea4a7acdee773156e6647a30d77967) +++ sources/gui/qml/pages/pretreatment/create/PreTreatmentCreateContent.qml (.../PreTreatmentCreateContent.qml) (revision 13d04e674e9d22091bcc72b97574bbba21fdc9c9) @@ -73,7 +73,7 @@ _bpMeasurementIntervalControl .active && _bpMeasurementInterval .valid } - function confirm () { + function validate () { vTreatmentCreate .patientID = _pretreatmentPatientIDEntry.text vPostTreatmentAdjustmentTreatmentLog.patientID = _pretreatmentPatientIDEntry.text // store for the TreatmentLog @@ -84,6 +84,8 @@ vTreatmentCreate.doValidation ( ) } + function confirm () { vTreatmentCreate.doConfirm() } + Connections{ target: vTreatmentCreate function onDidValidationPass ( vValue ) { vPostTreatmentAdjustmentTreatmentLog.heparinDispensingRateOff = vTreatmentCreate.heparinDispensingRateOff = ! vTreatmentCreate.heparinDispensingRate @@ -101,7 +103,6 @@ vTreatmentCreate.dialysateTempRejectReason = Variables.noRejectReason vTreatmentCreate.salineBolusVolumeRejectReason = Variables.noRejectReason vTreatmentCreate.bloodPressureMeasureIntervalRejectReason = Variables.noRejectReason - vTreatmentCreate.doConfirm () _root.editingEnabled = false } }