1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 09:46:25 +00:00

Fixed abort bug

This commit is contained in:
Paweł Jastrzębski
2013-08-13 09:33:46 +02:00
parent f8b29cd967
commit 877a859ef4

View File

@@ -186,7 +186,8 @@ class WorkerThread(QtCore.QThread):
self.emit(QtCore.SIGNAL("addMessage"), 'KCC failed to create EPUB!', 'error')
if not self.conversionAlive:
for item in outputPath:
os.remove(item)
if os.path.exists(item):
os.remove(item)
self.clean()
return
if not self.errors: