X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/a47dc8edae84ae571ff364351d493cec0be9d3f3..a0d3cf4aa8ffa76ed22a67efa4ea156eb2ef9f68:/src/versioncontrol/fileviewsvnplugin.cpp diff --git a/src/versioncontrol/fileviewsvnplugin.cpp b/src/versioncontrol/fileviewsvnplugin.cpp index 91a37a878..60ab81415 100644 --- a/src/versioncontrol/fileviewsvnplugin.cpp +++ b/src/versioncontrol/fileviewsvnplugin.cpp @@ -102,6 +102,15 @@ bool FileViewSvnPlugin::beginRetrieval(const QString& directory) { Q_ASSERT(directory.endsWith('/')); + // clear all entries for this directory + QMutableHashIterator it(m_versionInfoHash); + while (it.hasNext()) { + it.next(); + if (it.key().startsWith(directory)) { + it.remove(); + } + } + QStringList arguments; arguments << "status" << "--show-updates" << directory;