┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinnewfilemenu.cpp
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2013-08-24 20:22:56 +0200
committerFrank Reininghaus <[email protected]>2013-08-24 20:22:56 +0200
commit7ffa66f77789f754a4c35a5c4d0ecbfc0a0ae1e7 (patch)
tree91dae1574805e549359e2333bcb4c346d1066a76 /src/dolphinnewfilemenu.cpp
parentd7997f16a703990c1519bcf87806e44fb0ec73fa (diff)
Make determining the mime type faster for folders
KFileItem::determineMimeType() not only determines the mime type, but also the icon. For folders, it looks for a .directory file inside the folder, where a custom icon might be stored. This can take quite a bit of time and cause the problem that some folder's type still appears to be "unknown" when the view is shown. We can work around this problem by caching the folder mime type in a static QString and applying to to all folders, which can be identified easily with KFileItem::isDir(), BUG: 321710 FIXED-IN: 4.11.1 REVIEW: 111830
Diffstat (limited to 'src/dolphinnewfilemenu.cpp')
0 files changed, 0 insertions, 0 deletions