diff options
| author | David Schulz <david.schulz@qt.io> | 2019-10-18 10:31:14 +0200 |
|---|---|---|
| committer | David Schulz <david.schulz@qt.io> | 2019-10-25 12:50:24 +0000 |
| commit | 10c94994db84c920ebf1ff43b6b5fe5224ee8afa (patch) | |
| tree | a98f6f5fac876b18a72072635d47bfe166ad4e9b /src/plugins/python/pythoneditor.cpp | |
| parent | 088d5c0f779edc12605a04486d223749c3158152 (diff) | |
Python: close all info bars after language server setup
Change-Id: I607f7cb5a31f3db0c7d7d77011860a1ea87eb8d2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/python/pythoneditor.cpp')
| -rw-r--r-- | src/plugins/python/pythoneditor.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/plugins/python/pythoneditor.cpp b/src/plugins/python/pythoneditor.cpp index 6481897e699..eea74c17868 100644 --- a/src/plugins/python/pythoneditor.cpp +++ b/src/plugins/python/pythoneditor.cpp @@ -35,19 +35,6 @@ namespace Python { namespace Internal { -static void documentOpened(Core::IDocument *document) -{ - auto textDocument = qobject_cast<TextEditor::TextDocument *>(document); - if (!textDocument || textDocument->mimeType() != Constants::C_PY_MIMETYPE) - return; - - const Utils::FilePath &python = detectPython(textDocument->filePath()); - if (!python.exists()) - return; - - updateEditorInfoBar(python, textDocument); -} - PythonEditorFactory::PythonEditorFactory() { setId(Constants::C_PYTHONEDITOR_ID); @@ -68,7 +55,7 @@ PythonEditorFactory::PythonEditorFactory() setCodeFoldingSupported(true); connect(Core::EditorManager::instance(), &Core::EditorManager::documentOpened, - this, documentOpened); + this, &PyLSConfigureAssistant::documentOpened); } } // namespace Internal |
