From c7793238f75498997cf7215f825ff4a49c6b19ed Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 16 Feb 2017 14:20:35 +0100 Subject: [PATCH] Disallow pre-heat temperature of 0 explicitly Because that signals to the printer that it should cancel pre-heating. Contributes to issue CURA-3161. --- resources/qml/PrintMonitor.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/qml/PrintMonitor.qml b/resources/qml/PrintMonitor.qml index 5185c1fbe2..dc51bbaf01 100644 --- a/resources/qml/PrintMonitor.qml +++ b/resources/qml/PrintMonitor.qml @@ -336,6 +336,10 @@ Column { return false; //Target temperature too high. } + if (parseInt(preheatTemperatureInput.text) == 0) + { + return false; //Setting the temperature to 0 is not allowed (since that cancels the pre-heating). + } return true; //Preconditions are met. } anchors.right: parent.right