From 3950eccaf08374862ba848eac5319645d6a0f0d9 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Thu, 24 Nov 2011 23:38:36 +0100 Subject: 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&) does not work. To fix this, the old function KFileItemModel::restoreExpandedUrls(const QSet&) is restored. Unit test included. --- src/kitemviews/kfileitemmodel.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/kitemviews/kfileitemmodel.cpp') diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp index 363503b02..040309dc3 100644 --- a/src/kitemviews/kfileitemmodel.cpp +++ b/src/kitemviews/kfileitemmodel.cpp @@ -431,6 +431,11 @@ QSet KFileItemModel::expandedUrls() const return m_expandedUrls; } +void KFileItemModel::restoreExpandedUrls(const QSet& urls) +{ + m_urlsToExpand = urls; +} + void KFileItemModel::setExpanded(const QSet& urls) { -- cgit v1.3