diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-31 09:17:22 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-31 09:17:22 -0400 |
| commit | 2eeaa0e31a0d74ccd7cada9e478db27263ce4532 (patch) | |
| tree | 08aa53622ed2398f9f5298c10b33c0a6a7122434 /src | |
| parent | e34a9e731574537ea0a64f7561bb8cd7cfd5075f (diff) | |
fixed warning when trying to get the file type of files without extensions
Diffstat (limited to 'src')
| -rw-r--r-- | src/filetreeitem.cpp | 2 |
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 |
