diff options
| author | Frank Reininghaus <[email protected]> | 2013-08-24 20:22:56 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2013-08-24 20:22:56 +0200 |
| commit | 7ffa66f77789f754a4c35a5c4d0ecbfc0a0ae1e7 (patch) | |
| tree | 91dae1574805e549359e2333bcb4c346d1066a76 /src/dolphincontextmenu.h | |
| parent | d7997f16a703990c1519bcf87806e44fb0ec73fa (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/dolphincontextmenu.h')
0 files changed, 0 insertions, 0 deletions
