diff options
| author | Frank Reininghaus <[email protected]> | 2011-11-24 23:38:36 +0100 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2011-11-24 23:38:36 +0100 |
| commit | 3950eccaf08374862ba848eac5319645d6a0f0d9 (patch) | |
| tree | 6f1a2355b2a7751fd44dfe3dd8cb3ac223f88290 /src/views | |
| parent | c0feb043e099620f50d3698c15219131973ed4f0 (diff) | |
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.
Diffstat (limited to 'src/views')
| -rw-r--r-- | src/views/dolphinview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<KUrl> urls; stream >> urls; - fileItemModel()->setExpanded(urls); + fileItemModel()->restoreExpandedUrls(urls); } void DolphinView::saveState(QDataStream& stream) |
