Index: sources/gui/qml/pages/treatment/adjustments/TreatmentAdjustmentDuration.qml =================================================================== diff -u -r601289deb20f7059b3af5bb19e16f53974262ceb -rdb581c8cfc6e1cce31ad2233e32f78cbcb797e24 --- sources/gui/qml/pages/treatment/adjustments/TreatmentAdjustmentDuration.qml (.../TreatmentAdjustmentDuration.qml) (revision 601289deb20f7059b3af5bb19e16f53974262ceb) +++ sources/gui/qml/pages/treatment/adjustments/TreatmentAdjustmentDuration.qml (.../TreatmentAdjustmentDuration.qml) (revision db581c8cfc6e1cce31ad2233e32f78cbcb797e24) @@ -35,7 +35,11 @@ backVisible : _treatmentDurationStack.stackView.depth > 1 onAboutToShow : { + // reset the state of the edit screen when edit dialog is first opened to currently set duration + // cannot reset in StackView.onActivating or edit screen will reset when going back from confirm screen + // and user modified duration will be reset back to currently set duration _treatmentAdjustmentDurationEdit.reset() + // reset the state of the stack and push the initial screen _treatmentDurationStack.reset() } onClosed : { _treatmentDurationStack.reset() }