forked from openlp/openlp
fixed image filter
This commit is contained in:
parent
8bec349273
commit
b04d0f42cc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user