From 92859697c5e89e73759d51a15d432ffeb5b4cde1 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Thu, 3 Aug 2017 10:57:47 +0200 Subject: [PATCH] Fix error about empty qml url --- cura/PrinterOutputDevice.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cura/PrinterOutputDevice.py b/cura/PrinterOutputDevice.py index bf013e4b9f..7a0a91068c 100644 --- a/cura/PrinterOutputDevice.py +++ b/cura/PrinterOutputDevice.py @@ -144,6 +144,9 @@ class PrinterOutputDevice(QObject, OutputDevice): return self._control_item def _createControlViewFromQML(self): + if not self._control_view_qml_path: + return + path = QUrl.fromLocalFile(self._control_view_qml_path) # Because of garbage collection we need to keep this referenced by python.