[PictureLoader] Fix freezes/crashes from parallel folder search

This commit is contained in:
RickyRister 2025-06-16 02:44:16 -07:00
parent d42bfa88e1
commit bcf46c6a57
10 changed files with 279 additions and 154 deletions

View file

@ -148,6 +148,7 @@ void PictureLoader::getPixmap(QPixmap &pixmap, CardInfoPtr card, QSize size)
void PictureLoader::imageLoaded(CardInfoPtr card, const QImage &image)
{
if (image.isNull()) {
qCDebug(PictureLoaderLog) << "Caching NULL pixmap for" << card->getName();
QPixmapCache::insert(card->getPixmapCacheKey(), QPixmap());
} else {
if (card->getUpsideDownArt()) {