diff options
author | David Schulz <david.schulz@qt.io> | 2022-08-08 13:05:47 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2022-08-08 11:30:03 +0000 |
commit | 9fe3aa661282ad04bd458064cab15ea952939718 (patch) | |
tree | cf4c7faac5ba2f4718cc97dcf02817059fcbd136 /src/plugins/python/pythoneditor.cpp | |
parent | 892448753c30542c7d9bc9575f116020b8945460 (diff) | |
download | qt-creator-9fe3aa661282ad04bd458064cab15ea952939718.tar.gz |
Python: Fix detecting python ls for reopened files
Change-Id: Icc601fa43c7b1432d0bf12fae2f65e0c914262ac
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/python/pythoneditor.cpp')
-rw-r--r-- | src/plugins/python/pythoneditor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/python/pythoneditor.cpp b/src/plugins/python/pythoneditor.cpp index 32fd9e9266..2a6c0d094c 100644 --- a/src/plugins/python/pythoneditor.cpp +++ b/src/plugins/python/pythoneditor.cpp @@ -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; |