Revert "Replace new message string with a logging line"

This reverts commit e052c3ba83.

CURA-4398
This commit is contained in:
Lipu Fei 2017-10-06 09:57:39 +02:00
parent e052c3ba83
commit 39fc03c550

View file

@ -843,9 +843,13 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
# This function can fail to actually start a print due to not being authenticated or another print already
# being in progress.
def startPrint(self):
# Check if we're already writing
if not self._write_finished:
Logger.log("d", "Sending new jobs (temporarily) blocked, still sending the previous print job.")
self._error_message = Message(
i18n_catalog.i18nc("@info:status",
"Sending new jobs (temporarily) blocked, still sending the previous print job."))
self._error_message.show()
return
# Indicate we're starting a new write action, is set back to True at the end of this method