┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmmanuel Pescosta <[email protected]>2013-03-17 20:13:55 +0100
committerEmmanuel Pescosta <[email protected]>2013-03-17 20:13:55 +0100
commit7198437118ae45487e56e7c8bede82fe53deb21c (patch)
tree55b4339607735215db805fa366c53b1c4fef9302 /src
parent61ea42b35370c77c819e1af8d917c112453b7418 (diff)
Refresh all expanded directories too, when reloading a directory.
BUG: 295300 FIXED-IN: 4.10.2 REVIEW: 109488
Diffstat (limited to 'src')
-rw-r--r--src/kitemviews/kfileitemmodel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp
index 792724502..26521a6b6 100644
--- a/src/kitemviews/kfileitemmodel.cpp
+++ b/src/kitemviews/kfileitemmodel.cpp
@@ -120,6 +120,11 @@ void KFileItemModel::loadDirectory(const KUrl& url)
void KFileItemModel::refreshDirectory(const KUrl& url)
{
+ // Refresh all expanded directories first (Bug 295300)
+ foreach (const KUrl& expandedUrl, m_expandedDirs) {
+ m_dirLister->openUrl(expandedUrl, KDirLister::Reload);
+ }
+
m_dirLister->openUrl(url, KDirLister::Reload);
}