From ba4b7a9b7f71dc2099336b58254ed0e7a15f2b57 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Sat, 19 Jun 2010 20:42:49 +0200 Subject: [PATCH] Removed lowercasing of image formats. --- openlp/core/utils/__init__.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/openlp/core/utils/__init__.py b/openlp/core/utils/__init__.py index d7fab0968..78c16e26a 100644 --- a/openlp/core/utils/__init__.py +++ b/openlp/core/utils/__init__.py @@ -187,15 +187,10 @@ def get_images_filter(): global images_filter if not images_filter: log.debug(u'Generating images filter.') - old_formats = [str(fmt).lower() + formats = [unicode(fmt) for fmt in QtGui.QImageReader.supportedImageFormats()] - new_formats = [] - for fmt in old_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) + 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) return images_filter