aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/fsengine/fileiteratordevicesappender.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/utils/fsengine/fileiteratordevicesappender.h')
-rw-r--r--src/libs/utils/fsengine/fileiteratordevicesappender.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libs/utils/fsengine/fileiteratordevicesappender.h b/src/libs/utils/fsengine/fileiteratordevicesappender.h
index c08c6cb3f7..9aec917d6b 100644
--- a/src/libs/utils/fsengine/fileiteratordevicesappender.h
+++ b/src/libs/utils/fsengine/fileiteratordevicesappender.h
@@ -93,7 +93,10 @@ private:
void setPath() const
{
if (!m_hasSetPath) {
- const QString p = path();
+ // path() can be "/somedir/.." so we need to clean it first.
+ // We only need QDir::cleanPath here, as the path is always
+ // a fs engine path and will not contain scheme:// etc.
+ const QString p = QDir::cleanPath(path());
if (p.compare(QDir::rootPath(), Qt::CaseInsensitive) == 0)
m_status = State::IteratingRoot;