From 35a3bdc9242eedcb3905856bf584f3efb5fbbbda Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Wed, 9 Nov 2016 13:18:15 +0100 Subject: [PATCH] Fix qml error about stopCamera when no printer is connected --- resources/qml/Cura.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index 5380eaf7ca..5c5a1cdc9d 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -424,6 +424,10 @@ UM.MainWindow visible: base.monitoringPrint onVisibleChanged: { + if(Cura.MachineManager.printerOutputDevices.length == 0 ) + { + return; + } if(visible) { Cura.MachineManager.printerOutputDevices[0].startCamera()