forked from qt-creator/qt-creator
Python: Fix detecting python ls for reopened files
Change-Id: Icc601fa43c7b1432d0bf12fae2f65e0c914262ac Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -120,13 +120,13 @@ public:
|
||||
if (python.exists())
|
||||
PyLSConfigureAssistant::openDocumentWithPython(python, this);
|
||||
});
|
||||
connect(this, &PythonDocument::openFinishedSuccessfully,
|
||||
this, &PythonDocument::checkForPyls);
|
||||
}
|
||||
|
||||
void setFilePath(const Utils::FilePath &filePath) override
|
||||
void checkForPyls()
|
||||
{
|
||||
TextEditor::TextDocument::setFilePath(filePath);
|
||||
|
||||
const Utils::FilePath &python = detectPython(filePath);
|
||||
const Utils::FilePath &python = detectPython(filePath());
|
||||
if (!python.exists())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user