forked from qt-creator/qt-creator
QmlDebugger: breakpoints in symlinked qmlprojects
Task-number: QTCREATORBUG-4405 Reviewed-by: Kai Koehne
This commit is contained in:
@@ -776,12 +776,6 @@ QString QmlEngine::toFileInProject(const QString &fileUrl)
|
|||||||
return sourcePath;
|
return sourcePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try whether file is absolute & exists
|
|
||||||
if (QFileInfo(path).isAbsolute()
|
|
||||||
&& QFileInfo(path).exists()) {
|
|
||||||
return path;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (d->fileFinder.projectDirectory().isEmpty())
|
if (d->fileFinder.projectDirectory().isEmpty())
|
||||||
d->fileFinder.setProjectDirectory(startParameters().projectDir);
|
d->fileFinder.setProjectDirectory(startParameters().projectDir);
|
||||||
|
|
||||||
@@ -790,6 +784,13 @@ QString QmlEngine::toFileInProject(const QString &fileUrl)
|
|||||||
QString fileInProject = d->fileFinder.findFile(path, &fileFound);
|
QString fileInProject = d->fileFinder.findFile(path, &fileFound);
|
||||||
if (fileFound)
|
if (fileFound)
|
||||||
return fileInProject;
|
return fileInProject;
|
||||||
|
|
||||||
|
// Try whether file is absolute & exists
|
||||||
|
if (QFileInfo(path).isAbsolute()
|
||||||
|
&& QFileInfo(path).exists()) {
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
return fileUrl;
|
return fileUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,8 @@
|
|||||||
#include <coreplugin/modemanager.h>
|
#include <coreplugin/modemanager.h>
|
||||||
#include <projectexplorer/projectexplorerconstants.h>
|
#include <projectexplorer/projectexplorerconstants.h>
|
||||||
#include <projectexplorer/applicationlauncher.h>
|
#include <projectexplorer/applicationlauncher.h>
|
||||||
|
#include <projectexplorer/target.h>
|
||||||
|
#include <projectexplorer/project.h>
|
||||||
#include <qt4projectmanager/qtversionmanager.h>
|
#include <qt4projectmanager/qtversionmanager.h>
|
||||||
#include <utils/environment.h>
|
#include <utils/environment.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
@@ -204,6 +206,7 @@ RunControl *QmlRunControlFactory::createDebugRunControl(QmlProjectRunConfigurati
|
|||||||
params.workingDirectory = runConfig->workingDirectory();
|
params.workingDirectory = runConfig->workingDirectory();
|
||||||
params.environment = runConfig->environment();
|
params.environment = runConfig->environment();
|
||||||
params.displayName = runConfig->displayName();
|
params.displayName = runConfig->displayName();
|
||||||
|
params.projectDir = runConfig->target()->project()->projectDirectory();
|
||||||
|
|
||||||
if (params.executable.isEmpty()) {
|
if (params.executable.isEmpty()) {
|
||||||
showQmlObserverToolWarning();
|
showQmlObserverToolWarning();
|
||||||
|
|||||||
Reference in New Issue
Block a user