Re-organize the code that compares expanded items
The previous approach, which was based on comparing the URLs as strings, was not only very complex, but also could lead to inconsistencies in the model, namely, that not all children were removed from the model when the dir lister reported the parent as deleted. Later on, this could even lead to a crash. BUG: 311947 FIXED-IN: 4.11 REVIEW: 108766
Showing
- dolphin/src/kitemviews/kfileitemmodel.cpp 29 additions, 87 deletionsdolphin/src/kitemviews/kfileitemmodel.cpp
- dolphin/src/kitemviews/kfileitemmodel.h 0 additions, 16 deletionsdolphin/src/kitemviews/kfileitemmodel.h
- dolphin/src/tests/kfileitemmodeltest.cpp 52 additions, 0 deletionsdolphin/src/tests/kfileitemmodeltest.cpp
Loading
Please register or sign in to comment