forked from qt-creator/qt-creator
LanguageClient: fix restart check for stdio clients
Change-Id: I4acb61b48b7ac18423b2e106f1f9ea9b3f7ccb70 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user