summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGavin Hurlbut <ghurlbut@mythtv.org>2010-12-05 06:34:58 (GMT)
committer Gavin Hurlbut <ghurlbut@mythtv.org>2010-12-05 06:37:41 (GMT)
commit641d6e65f5372594a40a2bcc6e8b9f6adb29d2eb (patch)
tree1f95681f09be328427eaf0cccefc66374e1fdfbd
parent803b4743e6913f5c493c1b64cd4e84a6fce7b356 (diff)
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
-rw-r--r--mythplugins/mythgallery/mythgallery/galleryutil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mythplugins/mythgallery/mythgallery/galleryutil.cpp b/mythplugins/mythgallery/mythgallery/galleryutil.cpp
index b47c9e0..b4a3b3e 100644
--- a/mythplugins/mythgallery/mythgallery/galleryutil.cpp
+++ b/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;
}