chiark / gitweb /
Allow canceling while paused
[cura.git] / Cura / util / printerConnection / serialConnection.py
index 81f03bf4337b4934476d5ab7945e0f6be2d63405..4b1d6bb55516adef38d354cb0f636dc6c80d09f0 100644 (file)
@@ -108,7 +108,8 @@ class serialConnection(printerConnectionBase.printerConnectionBase):
 
        #Abort the previously loaded print file
        def cancelPrint(self):
-               if not self.isPrinting() or self._process is None:
+               if (not self.isPrinting() and not self.isPaused()) or \
+                       self._process is None:
                        return
                self._process.stdin.write('STOP\n')
                self._printProgress = 0