Commit 410e78e4 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Fix save for relative symbolic links on Windows

Works around QTBUG-62802.

Change-Id: I2edacb6d368e28fa240e7a866692391cf67f0ca2
Reviewed-by: Oswald Buddenhagen's avatarOswald Buddenhagen <>
Reviewed-by: Eike Ziller's avatarEike Ziller <>
Reviewed-by: default avatarRobert Loehning <>
parent 9a1030cf
......@@ -223,7 +223,7 @@ FileName FileUtils::resolveSymlinks(const FileName &path)
QFileInfo f = path.toFileInfo();
int links = 16;
while (links-- && f.isSymLink())
f.setFile(f.dir(), f.symLinkTarget());
if (links <= 0)
return FileName();
return FileName::fromString(f.filePath());
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment