Small code cleanup
pathElements[n] cannot contain '/' as they are result of "split(u'/')" Change-Id: I2a3c4651f65aa2731947a514a1f18660a95063ca Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
73c5c15d68
commit
b268177bf8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user