forked from qt-creator/qt-creator
ProjectExlorer: Match filenames only to find filetypes
Do look at filenames only to decide which filetype a file is. Change-Id: Ie64ad0a91df1ddd22c1cec4089f2611030560f3e Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -266,7 +266,8 @@ FileType Node::fileTypeForMimeType(const Utils::MimeType &mt)
|
|||||||
|
|
||||||
FileType Node::fileTypeForFileName(const Utils::FileName &file)
|
FileType Node::fileTypeForFileName(const Utils::FileName &file)
|
||||||
{
|
{
|
||||||
return fileTypeForMimeType(Utils::mimeTypeForFile(file.toString()));
|
return fileTypeForMimeType(Utils::mimeTypeForFile(file.toString(),
|
||||||
|
Utils::MimeMatchMode::MatchExtension));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
Reference in New Issue
Block a user