From e2e11752c30c96ee4e18c1300eb39ab685d304d6 Mon Sep 17 00:00:00 2001 From: Damiano Lombardi Date: Wed, 20 Dec 2023 20:25:20 +0100 Subject: [PATCH] Check for project preview image in png format --- src/core/localfilesmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/localfilesmodel.cpp b/src/core/localfilesmodel.cpp index ac8423c683..05a5b2c0d6 100644 --- a/src/core/localfilesmodel.cpp +++ b/src/core/localfilesmodel.cpp @@ -231,7 +231,7 @@ void LocalFilesModel::reloadModel() else { const QString suffix = fi.suffix().toLower(); - if ( suffix == QStringLiteral( "jpg" ) && items.contains( fi.completeBaseName() ) ) + if ( ( suffix == QStringLiteral( "png" ) || suffix == QStringLiteral( "jpg" ) ) && items.contains( fi.completeBaseName() ) ) { // Skip project preview images continue;