summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythoneditor.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2022-08-08 13:05:47 +0200
committerDavid Schulz <david.schulz@qt.io>2022-08-08 11:30:03 +0000
commit9fe3aa661282ad04bd458064cab15ea952939718 (patch)
treecf4c7faac5ba2f4718cc97dcf02817059fcbd136 /src/plugins/python/pythoneditor.cpp
parent892448753c30542c7d9bc9575f116020b8945460 (diff)
downloadqt-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.cpp8
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;