aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lumina-fm/MimeIconProvider.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lumina-fm/MimeIconProvider.h b/lumina-fm/MimeIconProvider.h
index 6bb3dacf..044ff7eb 100644
--- a/lumina-fm/MimeIconProvider.h
+++ b/lumina-fm/MimeIconProvider.h
@@ -28,7 +28,8 @@ public:
return LXDG::findIcon("folder","");
}else if(info.isFile()){
if(info.suffix().toLower()=="png" || info.suffix().toLower()=="jpg"){
- return QIcon(info.absoluteFilePath());
+ //make sure to only load small versions of the files into memory: could have hundreds of them...
+ return QIcon( QPixmap(info.absoluteFilePath()).scaledToHeight(64) );
}else{
return LXDG::findMimeIcon(info.suffix());
}
@@ -51,4 +52,4 @@ public:
};
-#endif \ No newline at end of file
+#endif
bgstack15