fixed image filter

This commit is contained in:
Andreas Preikschat 2013-07-17 14:28:48 +02:00
parent 8bec349273
commit b04d0f42cc

View File

@ -239,8 +239,7 @@ def get_images_filter():
global IMAGES_FILTER
if not IMAGES_FILTER:
log.debug(u'Generating images filter.')
formats = list(map(bytes, QtGui.QImageReader.supportedImageFormats()))
formats = list(map(bytes.decode, formats))
formats = list(map(bytes.decode, map(bytes, QtGui.QImageReader.supportedImageFormats())))
visible_formats = u'(*.%s)' % u'; *.'.join(formats)
actual_formats = u'(*.%s)' % u' *.'.join(formats)
IMAGES_FILTER = u'%s %s %s' % (translate('OpenLP', 'Image Files'), visible_formats, actual_formats)