Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 641d6e65f5372594a40a2bcc6e8b9f6adb29d2eb 1 parent 803b474
@Beirdo Beirdo authored
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.