summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythoneditor.cpp
diff options
context:
space:
mode:
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 9775fc8982..302af8a8fc 100644
--- a/src/plugins/python/pythoneditor.cpp
+++ b/src/plugins/python/pythoneditor.cpp
@@ -117,13 +117,13 @@ public:
if (python.exists())
PyLSConfigureAssistant::openDocumentWithPython(python, this);
});
+ connect(this, &PythonDocument::openFinishedSuccessfully,
+ this, &PythonDocument::checkForPyls);
}
- void setFilePath(const FilePath &filePath) override
+ void checkForPyls()
{
- TextEditor::TextDocument::setFilePath(filePath);
-
- const FilePath &python = detectPython(filePath);
+ const FilePath &python = detectPython(filePath());
if (!python.exists())
return;