forked from openlp/openlp
Removed lowercasing of image formats.
This commit is contained in:
parent
d321249366
commit
ba4b7a9b7f
@ -187,15 +187,10 @@ def get_images_filter():
|
|||||||
global images_filter
|
global images_filter
|
||||||
if not images_filter:
|
if not images_filter:
|
||||||
log.debug(u'Generating images filter.')
|
log.debug(u'Generating images filter.')
|
||||||
old_formats = [str(fmt).lower()
|
formats = [unicode(fmt)
|
||||||
for fmt in QtGui.QImageReader.supportedImageFormats()]
|
for fmt in QtGui.QImageReader.supportedImageFormats()]
|
||||||
new_formats = []
|
visible_formats = u'(*.%s)' % u'; *.'.join(formats)
|
||||||
for fmt in old_formats:
|
actual_formats = u'(*.%s)' % u' *.'.join(formats)
|
||||||
if fmt not in new_formats:
|
|
||||||
new_formats.append(fmt)
|
|
||||||
new_formats.sort()
|
|
||||||
visible_formats = u'(*.%s)' % u'; *.'.join(new_formats)
|
|
||||||
actual_formats = u'(*.%s)' % u' *.'.join(new_formats)
|
|
||||||
images_filter = u'%s %s %s' % (translate('OpenLP', 'Image Files'),
|
images_filter = u'%s %s %s' % (translate('OpenLP', 'Image Files'),
|
||||||
visible_formats, actual_formats)
|
visible_formats, actual_formats)
|
||||||
return images_filter
|
return images_filter
|
||||||
|
Loading…
Reference in New Issue
Block a user