Permalink
Browse files

Move toLower to the correct location

Seems we were filtering file suffixes incorrectly, doing toLower() on the
filter list (which is already lower case) rather than the suffix of the file
we are checking.

Closes #9288
  • Loading branch information...
Beirdo committed Dec 5, 2010
1 parent e4ea220 commit fe9d48e5e98db8958b6331cf98cbb8c04200eca5
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythplugins/mythgallery/mythgallery/galleryutil.cpp
@@ -98,7 +98,7 @@ bool GalleryUtil::IsImage(const QString &filePath)
QStringList::const_iterator it = filt.begin();
for (; it != filt.end(); ++it)
{
- if ((*it).toLower().contains(fi.suffix()))
+ if ((*it).contains(fi.suffix().toLower()))
return true;
}
@@ -115,7 +115,7 @@ bool GalleryUtil::IsMovie(const QString &filePath)
QStringList::const_iterator it = filt.begin();
for (; it != filt.end(); ++it)
{
- if ((*it).toLower().contains(fi.suffix()))
+ if ((*it).contains(fi.suffix().toLower()))
return true;
}

0 comments on commit fe9d48e

Please sign in to comment.