Move message hide into terminate function

Always if we terminate we want to hide the old message. This fixes the message not hiding when using the tools.

Contributes to issue CURA-1278.
This commit is contained in:
Ghostkeeper 2016-05-23 13:24:54 +02:00
parent ab2a6136d7
commit 83c1ea2ccc

View file

@ -129,12 +129,6 @@ class CuraEngineBackend(Backend):
if self._slicing:
self._terminate()
if self._message:
self._message.hide()
self._message = None
return
if self._process_layers_job:
self._process_layers_job.abort()
self._process_layers_job = None
@ -181,6 +175,9 @@ class CuraEngineBackend(Backend):
#self._createSocket() # Re create the socket
except Exception as e: # terminating a process that is already terminating causes an exception, silently ignore this.
Logger.log("d", "Exception occured while trying to kill the engine %s", str(e))
if self._message:
self._message.hide()
self._message = None
def _onStartSliceCompleted(self, job):