From 972140f3add9d11d27b1beb294c8c16978d4e79f Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Thu, 11 Jul 2013 21:16:15 +0100 Subject: [PATCH] make suffix lower --- openlp/core/utils/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openlp/core/utils/__init__.py b/openlp/core/utils/__init__.py index c5b4ad1fb..fe955d23a 100644 --- a/openlp/core/utils/__init__.py +++ b/openlp/core/utils/__init__.py @@ -371,13 +371,13 @@ def is_not_image_file(file_name): ``file_name`` File name to be checked. """ - formats = [unicode(fmt) - for fmt in QtGui.QImageReader.supportedImageFormats()] if file_name.isEmpty(): return True else: + formats = [unicode(fmt).lower() + for fmt in QtGui.QImageReader.supportedImageFormats()] file_part, file_extension = os.path.splitext(unicode(file_name)) - if file_extension[1:] in formats and os.path.exists(file_name): + if file_extension[1:].lower() in formats and os.path.exists(file_name): return False return True