LanguageClient: fix restart check for stdio clients

Change-Id: I4acb61b48b7ac18423b2e106f1f9ea9b3f7ccb70
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2019-03-11 07:33:07 +01:00
parent 7f0589ef59
commit bbbf727272
5 changed files with 11 additions and 3 deletions

View File

@@ -473,7 +473,9 @@ bool StdIOSettings::needsRestart() const
{
if (BaseSettings::needsRestart())
return true;
if (auto stdIOInterface = qobject_cast<StdIOClientInterface *>(m_client))
if (m_client.isNull())
return false;
if (auto stdIOInterface = qobject_cast<const StdIOClientInterface *>(m_client->clientInterface()))
return stdIOInterface->needsRestart(this);
return false;
}