Fix error about empty qml url

This commit is contained in:
fieldOfView 2017-08-03 10:57:47 +02:00
parent 4d88d56ebf
commit 92859697c5

View File

@ -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.