forked from qt-creator/qt-creator
Clang: Send unregisterProjectParts only with non-empty list
Change-Id: Id11d420c481758ccd58921dddc92c6036c9204e1 Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
@@ -175,6 +175,7 @@ void ModelManagerSupportClang::onProjectPartsUpdated(ProjectExplorer::Project *p
|
|||||||
|
|
||||||
void ModelManagerSupportClang::onProjectPartsRemoved(const QStringList &projectPartIds)
|
void ModelManagerSupportClang::onProjectPartsRemoved(const QStringList &projectPartIds)
|
||||||
{
|
{
|
||||||
|
if (!projectPartIds.isEmpty())
|
||||||
m_ipcCommunicator.unregisterProjectPartsForCodeCompletion(projectPartIds);
|
m_ipcCommunicator.unregisterProjectPartsForCodeCompletion(projectPartIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user