QFileSystemEngine: Remove unneeded test for relative symlink
symLinkTarget should always return absolute path. Change-Id: Id0078924d2f0befdea91e652a6c7775707c1b3c8 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
8805fdb391
commit
1cb5943aee
@ -86,8 +86,6 @@ QString QFileSystemEngine::slowCanonicalized(const QString &path)
|
||||
fi.setFile(prefix);
|
||||
if (fi.isSymLink()) {
|
||||
QString target = fi.symLinkTarget();
|
||||
if(QFileInfo(target).isRelative())
|
||||
target = fi.absolutePath() + slash + target;
|
||||
if (separatorPos != -1) {
|
||||
if (fi.isDir() && !target.endsWith(slash))
|
||||
target.append(slash);
|
||||
|
Loading…
Reference in New Issue
Block a user