Fix a bug in how paths are made canonical and relative
Change-Id: Id9b2de9097cab4520882b48a28fccd382c5e076d Reviewed-by: Martin Smith <martin.smith@digia.com>
This commit is contained in:
parent
e4a6f44ce1
commit
983badb1dc
@ -238,7 +238,7 @@ QString Location::fileName() const
|
||||
*/
|
||||
QString Location::canonicalRelativePath(const QString &path) const
|
||||
{
|
||||
QDir configFileDir(QFileInfo(filePath()).dir());
|
||||
QDir configFileDir(QDir::current());
|
||||
QDir dir(path);
|
||||
const QString canon = dir.canonicalPath();
|
||||
return configFileDir.relativeFilePath(canon);
|
||||
|
Loading…
Reference in New Issue
Block a user