]> cloud.milkyroute.net Git - dolphin.git/commit
Fix restoring expanded URLs
authorFrank Reininghaus <frank78ac@googlemail.com>
Thu, 24 Nov 2011 22:38:36 +0000 (23:38 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Thu, 24 Nov 2011 22:38:36 +0000 (23:38 +0100)
commit3950eccaf08374862ba848eac5319645d6a0f0d9
tree6f1a2355b2a7751fd44dfe3dd8cb3ac223f88290
parentc0feb043e099620f50d3698c15219131973ed4f0
Fix restoring expanded URLs

When navigating back or forward in history, DolphinView tells the
KFileItemModel about the expanded URLs which should be restored before
the folder is entered. In this case, the algorithm in the new function
KFileItemModel::setExpanded(const QSet<KUrl>&) does not work. To fix
this, the old function
KFileItemModel::restoreExpandedUrls(const QSet<KUrl>&) is restored.

Unit test included.
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodel.h
src/tests/kfileitemmodeltest.cpp
src/views/dolphinview.cpp