fixed forgotten lines

This commit is contained in:
Andreas Preikschat 2011-06-22 19:06:35 +02:00
parent 63242b4191
commit 95d24f68b0

View File

@ -206,8 +206,8 @@ class ImageManager(QtCore.QObject):
"""
log.debug(u'_process - started')
while not self._clean_queue.empty():
log.debug(u'_process - recycle')
self._clean_cache()
print u'empty'
log.debug(u'_process - ended')
def _clean_cache(self):
@ -221,6 +221,7 @@ class ImageManager(QtCore.QObject):
image.image = resize_image(image.path, self.width, self.height)
if image.priority != Priority.Urgent:
self._clean_queue.task_done()
self._clean_queue.remove((image.priority, image))
image.priority = Priority.Low
self._clean_queue.put((image.priority, image))
return