CppModelManager: Pass context object into signal connection

Change-Id: I6b66fbc6300597534a1498e4abbd8c3162cee73e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2023-04-05 10:34:32 +02:00
parent 14ecda9ca2
commit 37f2d68464

View File

@@ -886,7 +886,7 @@ void CppModelManager::initCppTools()
connect(VcsManager::instance(), &VcsManager::repositoryChanged, connect(VcsManager::instance(), &VcsManager::repositoryChanged,
this, &CppModelManager::updateModifiedSourceFiles); this, &CppModelManager::updateModifiedSourceFiles);
connect(DocumentManager::instance(), &DocumentManager::filesChangedInternally, connect(DocumentManager::instance(), &DocumentManager::filesChangedInternally,
[this](const FilePaths &filePaths) { this, [this](const FilePaths &filePaths) {
updateSourceFiles(toSet(filePaths)); updateSourceFiles(toSet(filePaths));
}); });