Prevent flickering when updating items
author Peter Penz
()
committer Peter Penz
()
commit ef2ef83d762f4c2bdd0c13eb87759c58b1609957
tree 8c839b349dd6f1c8e58cedc660fe27e85b28f4ed
parent 7120e0166dc886e0a7fcbe03b8b5fb46137b5e75
Prevent flickering when updating items

When downloading images from e.g. the camera-IO-slave the files
will be downloaded as *.part files and renamed afterwards. The renaming
results in an undetermined mimetype and hence the probably already available
preview or icon gets replaced by a dummy icon. The patch fixes this by
keeping the old values as long until they have been resolved by
KFileItemModelRolesUpdater.
dolphin/src/kitemviews/kfileitemmodel.cpp
dolphin/src/kitemviews/kfileitemmodelrolesupdater.cpp