]> cloud.milkyroute.net Git - dolphin.git/commit
Re-organize the code that compares expanded items
authorFrank Reininghaus <frank78ac@googlemail.com>
Sun, 10 Feb 2013 17:09:07 +0000 (18:09 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Sun, 10 Feb 2013 17:09:07 +0000 (18:09 +0100)
commitdc6322dc090bcaec40d75522debad1edfb25b27a
treea60de270701ed412a7e59aa08c88a06dab5c587f
parent45450959ea231dde6bad3204851e7e6c875a9cdc
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
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodel.h
src/tests/kfileitemmodeltest.cpp