From c70e53897d16ce34aa4ae5774ba678ae0aa55672 Mon Sep 17 00:00:00 2001 From: Chris Bessent Date: Mon, 18 Jan 2021 08:48:18 -0700 Subject: Remove case sensitivity regarding preview file extensions That means ".dds" and ".DDS" should be treated the same. --- src/modinfodialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modinfodialog.cpp') diff --git a/src/modinfodialog.cpp b/src/modinfodialog.cpp index f50d7024..fc83bf11 100644 --- a/src/modinfodialog.cpp +++ b/src/modinfodialog.cpp @@ -48,7 +48,7 @@ bool canPreviewFile( return false; } - const auto ext = QFileInfo(filename).suffix(); + const auto ext = QFileInfo(filename).suffix().toLower(); return pluginContainer.previewGenerator().previewSupported(ext); } -- cgit v1.3.1