QmlDebugger: breakpoints in symlinked qmlprojects

Task-number: QTCREATORBUG-4405

Reviewed-by: Kai Koehne
This commit is contained in:
Christiaan Janssen
2011-04-19 16:27:12 +02:00
parent cca9d69f0e
commit 9a8cf34e63
2 changed files with 10 additions and 6 deletions

View File

@@ -776,12 +776,6 @@ QString QmlEngine::toFileInProject(const QString &fileUrl)
return sourcePath;
}
// Try whether file is absolute & exists
if (QFileInfo(path).isAbsolute()
&& QFileInfo(path).exists()) {
return path;
}
if (d->fileFinder.projectDirectory().isEmpty())
d->fileFinder.setProjectDirectory(startParameters().projectDir);
@@ -790,6 +784,13 @@ QString QmlEngine::toFileInProject(const QString &fileUrl)
QString fileInProject = d->fileFinder.findFile(path, &fileFound);
if (fileFound)
return fileInProject;
// Try whether file is absolute & exists
if (QFileInfo(path).isAbsolute()
&& QFileInfo(path).exists()) {
return path;
}
return fileUrl;
}