From 391d36edf78d07caa4116b6af0687d1f192bc82d Mon Sep 17 00:00:00 2001 From: Emmanuel Pescosta Date: Wed, 26 Jun 2013 22:04:52 +0200 Subject: Re-enable expandable folders for network top level folders (remote:/) Added a hash table for target url to url mapping. So when the dir lister sends us the target url as directory url, we can use the url mapping table to get the right "Dolphin internal" directory url, which is the non-target url. BUG: 306219 FIXED-IN: 4.11.0 REVIEW: 111252 --- src/kitemviews/kfileitemmodel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kitemviews/kfileitemmodel.h') diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h index 1d2d8c172..5917e6818 100644 --- a/src/kitemviews/kfileitemmodel.h +++ b/src/kitemviews/kfileitemmodel.h @@ -466,8 +466,8 @@ private: // Cache for KFileItemModel::groups() mutable QList > m_groups; - // Stores the URLs of the expanded directories. - QSet m_expandedDirs; + // Stores the URLs (key: target url, value: url) of the expanded directories. + QHash m_expandedDirs; // URLs that must be expanded. The expanding is initially triggered in setExpanded() // and done step after step in slotCompleted(). -- cgit v1.3.1