summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Wolff <[email protected]>2025-05-07 13:29:30 +0200
committerOliver Wolff <[email protected]>2025-05-22 20:24:24 +0200
commitb268177bf88179a41f7069c344af853284db6032 (patch)
tree094876a965b71d11d1ab8a15f2fed72cac7de4a7
parent73c5c15d68dabce918a42d424ed31607bc9a20cf (diff)
Small code cleanupHEADdev
pathElements[n] cannot contain '/' as they are result of "split(u'/')" Change-Id: I2a3c4651f65aa2731947a514a1f18660a95063ca Reviewed-by: Edward Welbourne <[email protected]>
-rw-r--r--src/gui/itemmodels/qfilesystemmodel.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gui/itemmodels/qfilesystemmodel.cpp b/src/gui/itemmodels/qfilesystemmodel.cpp
index 3d1ed4fb961..8cfd0650e8f 100644
--- a/src/gui/itemmodels/qfilesystemmodel.cpp
+++ b/src/gui/itemmodels/qfilesystemmodel.cpp
@@ -402,8 +402,6 @@ QFileSystemModelPrivate::QFileSystemNode *QFileSystemModelPrivate::node(const QS
QString rootPath = QDir(longPath).rootPath();
pathElements.prepend(rootPath);
}
- if (pathElements.at(0).endsWith(u'/'))
- pathElements[0].chop(1);
}
#else
// add the "/" item, since it is a valid path element on Unix