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:39:01 (GMT)
commitfe9d48e5e98db8958b6331cf98cbb8c04200eca5 (patch)
tree7d896c4cf188b4d2246c6072e4b7554a111e1cbe
parente4ea220f91185e083fa501d5528131a50ab6540b (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;
}