diff --git a/src/plugins/resourceeditor/resourcenode.cpp b/src/plugins/resourceeditor/resourcenode.cpp index ffe74eeb42a..cdf418ec438 100644 --- a/src/plugins/resourceeditor/resourcenode.cpp +++ b/src/plugins/resourceeditor/resourcenode.cpp @@ -658,7 +658,7 @@ ResourceTopLevelNode *ResourceFolderNode::resourceNode() const } ResourceFileNode::ResourceFileNode(const FileName &filePath, const QString &qrcPath, const QString &displayName) - : FileNode(filePath, FileType::Unknown, false) + : FileNode(filePath, FileNode::fileTypeForFileName(filePath), false) , m_qrcPath(qrcPath) , m_displayName(displayName) {