diff options
| author | Frank Reininghaus <[email protected]> | 2014-02-07 10:22:17 +0100 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2014-02-07 10:22:17 +0100 |
| commit | bb22ac0a4745b63ac02d72d176b93bc3f2b84ca0 (patch) | |
| tree | ef31f8aac2d87e57bd855a0b49b63315ac9a6425 /src/views/dolphinview.cpp | |
| parent | 564dcb08fd0f6fe23d55bd8216af4e5295abf099 (diff) | |
Only initialize the hash m_items in KFileItemModel if it is needed
Moreover, clear the entire hash if items are added or removed.
This saves time and memory when loading a directory, and it fixes
problems that might occur if the model is in an inconsistent state, such
as crashes that can happen when we try to remove individual items from
m_items.
BUG: 329494
FIXED-IN: 4.13.0
REVIEW: 115432
Diffstat (limited to 'src/views/dolphinview.cpp')
0 files changed, 0 insertions, 0 deletions
