Fix a bug in how paths are made canonical and relative
authorJan Arve Saether <jan-arve.saether@digia.com>
Fri, 21 Sep 2012 13:05:04 +0000 (15:05 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 8 Oct 2012 09:14:28 +0000 (11:14 +0200)
Change-Id: Id9b2de9097cab4520882b48a28fccd382c5e076d
Reviewed-by: Martin Smith <martin.smith@digia.com>
src/tools/qdoc/location.cpp

index 40c8cc8..942fc0f 100644 (file)
@@ -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);