No longer attempt to create monitorView if none was set

This commit is contained in:
Jaime van Kessel 2017-08-18 11:09:02 +02:00
parent 145b6825db
commit 1d9ac09053

View file

@ -163,6 +163,8 @@ class PrinterOutputDevice(QObject, OutputDevice):
Logger.log("e", "QQmlComponent error string %s", self._control_component.errorString())
def _createMonitorViewFromQML(self):
if not self._monitor_view_qml_path:
return
path = QUrl.fromLocalFile(self._monitor_view_qml_path)
# Because of garbage collection we need to keep this referenced by python.