Clang: Send unregisterProjectParts only with non-empty list

Change-Id: Id11d420c481758ccd58921dddc92c6036c9204e1
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
Nikolai Kosjar
2015-07-15 17:14:57 +02:00
parent 2203565cad
commit f51a403518

View File

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