1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-27 00:22:54 +00:00

Little tweaks

This commit is contained in:
Paweł Jastrzębski
2013-06-28 00:08:36 +02:00
parent 7005c9e40a
commit 35751efad5
2 changed files with 4 additions and 4 deletions

View File

@@ -138,8 +138,8 @@ class WorkerThread(QtCore.QThread):
self.emit(QtCore.SIGNAL("hideProgressBar"))
except UserWarning as warn:
self.errors = True
self.emit(QtCore.SIGNAL("addMessage"), 'KCC failed to create output file!', 'warning')
self.emit(QtCore.SIGNAL("addMessage"), str(warn), 'warning')
self.emit(QtCore.SIGNAL("addMessage"), 'KCC failed to create output file!', 'warning')
except Exception as err:
self.errors = True
type_, value_, traceback_ = sys.exc_info()

View File

@@ -340,7 +340,7 @@ def applyImgOptimization(img, isSplit, toRight, options, overrideQuality=5):
img.quantizeImage()
def dirImgProcess(path, origPath):
def dirImgProcess(path):
global options, splitCount
work = []
pagenumber = 0
@@ -381,7 +381,7 @@ def dirImgProcess(path, origPath):
pagenumbermodifier += 1
else:
rmtree(path)
raise UserWarning("Empty directory: " + origPath)
raise UserWarning("Source directory is empty.")
def fileImgProcess_init(queue, options):
@@ -742,7 +742,7 @@ def main(argv=None, qtGUI=None):
print "Processing images..."
if GUI:
GUI.emit(QtCore.SIGNAL("progressBarTick"), 'status', 'Processing images')
dirImgProcess(path + "/OEBPS/Images/", args[0])
dirImgProcess(path + "/OEBPS/Images/")
if GUI:
GUI.emit(QtCore.SIGNAL("progressBarTick"), 1)
if options.cbzoutput: