Fix spelling and remove print statement

This commit is contained in:
Tim Bentley 2011-09-20 16:41:04 +01:00
parent 834ed570ce
commit 47b7379967

View File

@ -215,7 +215,7 @@ class ImageManager(QtCore.QObject):
image = self._cache[name]
if image.image is None:
self._conversion_queue.modify_priority(image, Priority.High)
# make sure we are runnning and if not give it a kick
# make sure we are running and if not give it a kick
self.process_updates()
while image.image is None:
log.debug(u'get_image - waiting')
@ -237,7 +237,7 @@ class ImageManager(QtCore.QObject):
image = self._cache[name]
if image.image_bytes is None:
self._conversion_queue.modify_priority(image, Priority.Urgent)
# make sure we are runnning and if not give it a kick
# make sure we are running and if not give it a kick
self.process_updates()
while image.image_bytes is None:
log.debug(u'get_image_bytes - waiting')
@ -283,7 +283,6 @@ class ImageManager(QtCore.QObject):
"""
log.debug(u'_process_cache')
image = self._conversion_queue.get()[1]
print image
# Generate the QImage for the image.
if image.image is None:
image.image = resize_image(image.path, self.width, self.height,