forked from qt-creator/qt-creator
Python: Fix debugger start
Change-Id: I9a26c591d174f5f079c4a673a6bf1aedd5cd709c Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -208,8 +208,11 @@ void PyLSClient::openDocument(TextEditor::TextDocument *document)
|
|||||||
if (PythonProject *project = pythonProjectForFile(documentPath)) {
|
if (PythonProject *project = pythonProjectForFile(documentPath)) {
|
||||||
if (Target *target = project->activeTarget()) {
|
if (Target *target = project->activeTarget()) {
|
||||||
if (RunConfiguration *rc = target->activeRunConfiguration())
|
if (RunConfiguration *rc = target->activeRunConfiguration())
|
||||||
if (auto aspect = rc->aspect<PythonInterpreterAspect>())
|
if (auto aspect = rc->aspect<InterpreterAspect>()) {
|
||||||
updateExtraCompilers(project, aspect->extraCompilers());
|
updateExtraCompilers(project,
|
||||||
|
static_cast<PythonInterpreterAspect *>(aspect)
|
||||||
|
->extraCompilers());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (isSupportedDocument(document)) {
|
} else if (isSupportedDocument(document)) {
|
||||||
const FilePath workspacePath = documentPath.parentDir();
|
const FilePath workspacePath = documentPath.parentDir();
|
||||||
|
@@ -14,8 +14,6 @@ class PythonRunConfiguration;
|
|||||||
|
|
||||||
class PythonInterpreterAspect final : public ProjectExplorer::InterpreterAspect
|
class PythonInterpreterAspect final : public ProjectExplorer::InterpreterAspect
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PythonInterpreterAspect(Utils::AspectContainer *container, ProjectExplorer::RunConfiguration *rc);
|
PythonInterpreterAspect(Utils::AspectContainer *container, ProjectExplorer::RunConfiguration *rc);
|
||||||
~PythonInterpreterAspect() final;
|
~PythonInterpreterAspect() final;
|
||||||
|
Reference in New Issue
Block a user