Index: sources/gui/qml/dialogs/AcidConcentrateAdjustment.qml =================================================================== diff -u -r8b2648d33d06cb18d22103f8904360790bc52f4b -ree594afa3a2084c03395570954d723d04bbae215 --- sources/gui/qml/dialogs/AcidConcentrateAdjustment.qml (.../AcidConcentrateAdjustment.qml) (revision 8b2648d33d06cb18d22103f8904360790bc52f4b) +++ sources/gui/qml/dialogs/AcidConcentrateAdjustment.qml (.../AcidConcentrateAdjustment.qml) (revision ee594afa3a2084c03395570954d723d04bbae215) @@ -91,10 +91,8 @@ decimal : Variables.potassiumPrecision value : vTreatmentRanges.potassium isActive : vTreatmentRanges.potassiumSet - onDidActiveChange: function(vState) { vTreatmentRanges.potassiumSet = vState } - onDidChange : function(vValue) { - vTreatmentRanges.potassium = vValue - } + onDidActiveChange : function(vState) { vTreatmentRanges.potassiumSet = vState } + onDidChange : function(vValue) { vTreatmentRanges.potassium = vValue } } } @@ -118,10 +116,8 @@ decimal : Variables.calciumPrecision value : vTreatmentRanges.calcium isActive : vTreatmentRanges.calciumSet - onDidActiveChange: function(vState) { vTreatmentRanges.calciumSet = vState } - onDidChange : function(vValue) { - vTreatmentRanges.calcium = vValue - } + onDidActiveChange : function(vState) { vTreatmentRanges.calciumSet = vState } + onDidChange : function(vValue) { vTreatmentRanges.calcium = vValue } } } @@ -159,17 +155,12 @@ } } - function onDidPopulateAcidConcentrate ( vActive ) { - if ( vActive ) { - _potassiumValueControl .refresh() - _calciumValueControl .refresh() - vTreatmentRanges.potassiumSet = vActive - vTreatmentRanges.calciumSet = vActive - notificationText = qsTr("Duplicate Acid Concentrate Entry") - } - else { - notificationText = "" - } + function onDidPopulateAcidConcentrate () { + _potassiumValueControl .refresh() + _calciumValueControl .refresh() + vTreatmentRanges.potassiumSet = true + vTreatmentRanges.calciumSet = true + notificationText = qsTr("Duplicate Acid Concentrate Entry") } } }