]> cloud.milkyroute.net Git - dolphin.git/commit
Don't trigger assert when switching to details-view
authorPeter Penz <peter.penz19@gmail.com>
Tue, 21 Feb 2012 15:46:56 +0000 (16:46 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Tue, 21 Feb 2012 15:49:38 +0000 (16:49 +0100)
commit7deb601f317d7c806e69d0d82d99a03d0859ca85
tree49f4347edb8377156b19e52708a01690795bfd5b
parenta89bc63f6c2807e92c4e8f9b860ae32d93014e96
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
src/kitemviews/kfileitemlistview.cpp
src/kitemviews/kfileitemlistview.h
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodelrolesupdater.cpp
src/kitemviews/kitemlistview.cpp
src/kitemviews/kitemlistview.h
src/views/dolphinview.cpp