summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-07-31 09:17:22 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2020-07-31 09:17:22 -0400
commit2eeaa0e31a0d74ccd7cada9e478db27263ce4532 (patch)
tree08aa53622ed2398f9f5298c10b33c0a6a7122434 /src
parente34a9e731574537ea0a64f7561bb8cd7cfd5075f (diff)
fixed warning when trying to get the file type of files without extensions
Diffstat (limited to 'src')
-rw-r--r--src/filetreeitem.cpp2
1 files changed, 1 insertions, 1 deletions
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