From 2eeaa0e31a0d74ccd7cada9e478db27263ce4532 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Fri, 31 Jul 2020 09:17:22 -0400 Subject: fixed warning when trying to get the file type of files without extensions --- src/filetreeitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/filetreeitem.cpp b/src/filetreeitem.cpp index 49bc65ac..7997974f 100644 --- a/src/filetreeitem.cpp +++ b/src/filetreeitem.cpp @@ -40,7 +40,7 @@ const QString& directoryFileType() const QString& cachedFileTypeNoExtension() { static const QString name = [] { - const DWORD flags = SHGFI_TYPENAME; + const DWORD flags = SHGFI_TYPENAME | SHGFI_USEFILEATTRIBUTES; SHFILEINFOW sfi = {}; // dummy filename with no extension -- cgit v1.3.1