Refresh all expanded directories too, when reloading a directory.

BUG: 295300
FIXED-IN: 4.10.2
REVIEW: 109488
This commit is contained in:
Emmanuel Pescosta 2013-03-17 20:13:55 +01:00
parent 964978ec70
commit d3ad8f5937

View file

@ -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);
}