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 <david.schulz@qt.io>
(cherry picked from commit 19d200a348)
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Sami Shalayel
2024-11-06 13:18:06 +01:00
committed by David Schulz
parent 5bb3214e6d
commit fa4290d5e7

View File

@@ -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);
}
}