implementation fix: set priority to low instead of lowerest when the image was requested

This commit is contained in:
Andreas Preikschat 2011-07-07 17:15:48 +02:00
parent 3e8c91cbd5
commit 2b419d8a4e
1 changed files with 6 additions and 0 deletions

View File

@ -184,6 +184,12 @@ class ImageManager(QtCore.QObject):
while image.image is None:
log.debug(u'get_image - waiting')
time.sleep(0.1)
elif image.image_bytes is None:
# Set the priority to Low, because the image was requested but the
# byte stream was not generated yet. However, we only need to do
# this, when the image was generated before it was requested
# (otherwise this is already taken care of).
self._conversion_queue.modify_priority(image, Priority.Low)
return image.image
def get_image_bytes(self, name):