forked from qt-creator/qt-creator
Revert "CppTools: Do not put configuration document into global snapshot and working copy"
This reverts commit 05942b63f8 because it
breaks refactoring, e.g. Q_PROPERTY generators.
Change-Id: I9a14b912ba72663f08ea99e7e066d824b18da4b0
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -525,11 +525,14 @@ 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();
|
||||
newDocTable.insert(docTable.document(fileName));
|
||||
if (fileName != configFileName)
|
||||
newDocTable.insert(docTable.document(fileName));
|
||||
}
|
||||
}
|
||||
docTable = newDocTable;
|
||||
|
||||
Reference in New Issue
Block a user