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...
1 parent 803b474 commit 641d6e65f5372594a40a2bcc6e8b9f6adb29d2eb @Beirdo Beirdo committed Dec 4, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythplugins/mythgallery/mythgallery/galleryutil.cpp
View
4 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 641d6e6

Please sign in to comment.