From 140d5204c3298022202337897e0055070d4975d3 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 16 Feb 2017 12:48:17 +0100 Subject: [PATCH] Fix error message when not connected in preheatUpdateTimer Can't get preheatBedRemainingTime from null. Contributes to issue CURA-3161. --- resources/qml/PrintMonitor.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/qml/PrintMonitor.qml b/resources/qml/PrintMonitor.qml index 773410e967..16be06c95e 100644 --- a/resources/qml/PrintMonitor.qml +++ b/resources/qml/PrintMonitor.qml @@ -268,7 +268,7 @@ Column { id: preheatUpdateTimer interval: 100 //Update every 100ms. You want to update every 1s, but then you have one timer for the updating running out of sync with the actual date timer and you might skip seconds. - running: connectedPrinter.preheatBedRemainingTime != "" + running: connectedPrinter != null && connectedPrinter.preheatBedRemainingTime != "" repeat: true onTriggered: update() property var endTime: new Date() //Set initial endTime to be the current date, so that the endTime has initially already passed and the timer text becomes invisible if you were to update.