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 (Target *target = project->activeTarget()) {
|
||||
if (RunConfiguration *rc = target->activeRunConfiguration())
|
||||
if (auto aspect = rc->aspect<PythonInterpreterAspect>())
|
||||
updateExtraCompilers(project, aspect->extraCompilers());
|
||||
if (auto aspect = rc->aspect<InterpreterAspect>()) {
|
||||
updateExtraCompilers(project,
|
||||
static_cast<PythonInterpreterAspect *>(aspect)
|
||||
->extraCompilers());
|
||||
}
|
||||
}
|
||||
} else if (isSupportedDocument(document)) {
|
||||
const FilePath workspacePath = documentPath.parentDir();
|
||||
|
||||
Reference in New Issue
Block a user