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/views/dolphinview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/views/dolphinview.cpp') diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 578b93a2b..91d668e9d 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -943,7 +943,7 @@ void DolphinView::restoreState(QDataStream& stream) // Restore expanded folders (only relevant for the details view - will be ignored by the view in other view modes) QSet urls; stream >> urls; - fileItemModel()->setExpanded(urls); + fileItemModel()->restoreExpandedUrls(urls); } void DolphinView::saveState(QDataStream& stream) -- cgit v1.3