Don't trigger assert when switching to details-view
author Peter Penz
()
committer Peter Penz
()
commit abd23c29110560dd893e0dc2b542fd04e1845a0f
tree 1ff6994a7087bdfeaeef28e26665a32191343cd6
parent 8de987c45a7fef0f1d36a9f575d5cf9a47b19fd0
Don't trigger assert when switching to details-view

If the visible roles of the details-view are equal to the visible roles
of other views, then switching to the details-view will trigger an
assert because the invisible roles don't get updated.

Thanks to Frank Reininghaus for the detailed analyses!

In the context of this fix optimizations have been done when switching
view-modes: The "don't-animate-workaround" could be removed.

BUG: 294531
FIXED-IN: 4.8.1
dolphin/src/kitemviews/kfileitemlistview.cpp
dolphin/src/kitemviews/kfileitemlistview.h
dolphin/src/kitemviews/kfileitemmodel.cpp
dolphin/src/kitemviews/kfileitemmodelrolesupdater.cpp
dolphin/src/kitemviews/kitemlistview.cpp
dolphin/src/kitemviews/kitemlistview.h
dolphin/src/views/dolphinview.cpp