https://bugs.kde.org/show_bug.cgi?id=375246
Bug ID: 375246
Summary: Projects tool view shows wrong icons for files when
filename extensions are mapping to multiple mimetypes
Product: kdevplatform
Version: git master
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: project
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
In project/projectmodel.cpp the method iconNameForPath(...) looks up the icon
name for a file by its mimetype. But then it caches the icon name by the file
extension, which breaks for all files with name extensions which are not only
used with one mimetype.
So if there are e.g. both a CMakeLists.txt and a README.txt file, whatever file
is handled first defines the icon used for the other, due to both sharing
"txt".
--
You are receiving this mail because:
You are watching all bug changes.