aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/MimeIconProvider.h
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-09-19 08:43:54 -0400
committerKen Moore <ken@pcbsd.org>2014-09-19 08:43:54 -0400
commit9410c3eab315bf3e3fc60e32ca6e2fec11620dda (patch)
tree816fabd96c82e793d4735263625e130afe50c1d9 /lumina-fm/MimeIconProvider.h
parentMerge branch 'master' of github.com:pcbsd/lumina (diff)
downloadlumina-9410c3eab315bf3e3fc60e32ca6e2fec11620dda.tar.gz
lumina-9410c3eab315bf3e3fc60e32ca6e2fec11620dda.tar.bz2
lumina-9410c3eab315bf3e3fc60e32ca6e2fec11620dda.zip
Make the jpg/png suffix check case-insensitive for showing thumbnail previews in lumina-fm.
Diffstat (limited to 'lumina-fm/MimeIconProvider.h')
-rw-r--r--lumina-fm/MimeIconProvider.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lumina-fm/MimeIconProvider.h b/lumina-fm/MimeIconProvider.h
index 7f330820..6bb3dacf 100644
--- a/lumina-fm/MimeIconProvider.h
+++ b/lumina-fm/MimeIconProvider.h
@@ -27,7 +27,7 @@ public:
if(info.isDir()){
return LXDG::findIcon("folder","");
}else if(info.isFile()){
- if(info.suffix()=="png" || info.suffix()=="jpg"){
+ if(info.suffix().toLower()=="png" || info.suffix().toLower()=="jpg"){
return QIcon(info.absoluteFilePath());
}else{
return LXDG::findMimeIcon(info.suffix());
bgstack15