Jobstate is reset when there is no print job

CURA-1036
This commit is contained in:
Jaime van Kessel 2016-06-17 11:18:10 +02:00
parent 9dbdd7fe7a
commit a36157c538

View file

@ -231,6 +231,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
elif reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) == 404:
self.setProgress(0) # No print job found, so there can't be progress!
self._updateJobState("")
elif "snapshot" in reply.url().toString(): # Status update from image:
if reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) == 200:
self._camera_image.loadFromData(reply.readAll())