forked from qt-creator/qt-creator
CppTools: Do not put configuration document into global snapshot and working copy
These are remnants of the time when we had only one snapshot. Change-Id: I6ff4db645d1065a0ef195834890e0774e2e2c60e Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
This commit is contained in:
@@ -535,14 +535,11 @@ bool QtCreatorIntegration::navigateToSlot(const QString &objectName,
|
||||
} else {
|
||||
const CppTools::WorkingCopy workingCopy =
|
||||
CppTools::CppModelManager::instance()->workingCopy();
|
||||
const Utils::FileName configFileName =
|
||||
Utils::FileName::fromString(CppTools::CppModelManager::configurationFileName());
|
||||
QHashIterator<Utils::FileName, QPair<QByteArray, unsigned> > it = workingCopy.iterator();
|
||||
while (it.hasNext()) {
|
||||
it.next();
|
||||
const Utils::FileName &fileName = it.key();
|
||||
if (fileName != configFileName)
|
||||
newDocTable.insert(docTable.document(fileName));
|
||||
newDocTable.insert(docTable.document(fileName));
|
||||
}
|
||||
}
|
||||
docTable = newDocTable;
|
||||
|
||||
Reference in New Issue
Block a user