From fa4290d5e7a9d4ef5c75762f090e0e34fd12f156 Mon Sep 17 00:00:00 2001 From: Sami Shalayel Date: Wed, 6 Nov 2024 13:18:06 +0100 Subject: [PATCH] lsp: restart servers after configuration change Fix the connect to use the correct object: instead of connecting to the FilterProxy, connect to the underlying object. That allows to restart language servers whose configuration changed. Fixes: QTCREATORBUG-32005 Change-Id: I315aefe2a846086bbf74b50f6d3257c3880749cc Reviewed-by: David Schulz (cherry picked from commit 19d200a3482bdd787038045c9f626284ad8b0858) Reviewed-by: Marcus Tillmanns --- src/plugins/languageclient/languageclientsettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/languageclient/languageclientsettings.cpp b/src/plugins/languageclient/languageclientsettings.cpp index 00862786976..b7830ba3e41 100644 --- a/src/plugins/languageclient/languageclientsettings.cpp +++ b/src/plugins/languageclient/languageclientsettings.cpp @@ -293,7 +293,7 @@ void LanguageClientSettingsPageWidget::applyCurrentSettings() if (m_currentSettings.setting->applyFromSettingsWidget(m_currentSettings.widget)) { auto index = m_settings.indexForSetting(m_currentSettings.setting); - emit m_settings.dataChanged(index, index); + emit m_settings.sourceModel()->dataChanged(index, index); } }