Index: sources/gui/qml/pages/posttreatment/PostTreatmentBase.qml =================================================================== diff -u -r7fb13d9e1a453a37ab4dea5536e0f19ed6e272d2 -rd82802819678ccdb5d2cf480cf06071c4b4b4197 --- sources/gui/qml/pages/posttreatment/PostTreatmentBase.qml (.../PostTreatmentBase.qml) (revision 7fb13d9e1a453a37ab4dea5536e0f19ed6e272d2) +++ sources/gui/qml/pages/posttreatment/PostTreatmentBase.qml (.../PostTreatmentBase.qml) (revision d82802819678ccdb5d2cf480cf06071c4b4b4197) @@ -30,18 +30,18 @@ header.visible : false headerTitle : qsTr("End Treatment") - onVisibleChanged: if (visible) { _root.updateModel() } + onVisibleChanged: if ( visible && instructionBased ) { _root.updateModel() } function updateModel () { let stepName = stepNames[stackStepIndex] ?? "" let group = vSettings.groupFormat(stepName, _root.subStepName.length === 0 ? "" : _root.subStepName ) let instructionsGroup = vSettings.instructions[group] - if ( instructionsGroup !== undefined ) { - instructionTitle = instructionsGroup.title - instructionStepNames = instructionsGroup.keys - instructionStepImages = instructionsGroup.values - } + if ( ! instructionsGroup ) { return } + + instructionTitle = instructionsGroup.title + instructionStepNames = instructionsGroup.keys + instructionStepImages = instructionsGroup.values } }