forked from qt-creator/qt-creator
Designer: Fix crash when executing plugin unit tests
Broke with e3b1106afa.
Change-Id: Ifc35bfa1a4e0985427ea60f49609ff0fc3528a4d
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
committed by
Nikolai Kosjar
parent
239c82bfb0
commit
0bd07243ed
@@ -518,7 +518,7 @@ bool QtCreatorIntegration::navigateToSlot(const QString &objectName,
|
|||||||
} else {
|
} else {
|
||||||
const Utils::FilePath configFileName =
|
const Utils::FilePath configFileName =
|
||||||
Utils::FilePath::fromString(CppTools::CppModelManager::configurationFileName());
|
Utils::FilePath::fromString(CppTools::CppModelManager::configurationFileName());
|
||||||
const CppTools::WorkingCopy::Table &elements =
|
const CppTools::WorkingCopy::Table elements =
|
||||||
CppTools::CppModelManager::instance()->workingCopy().elements();
|
CppTools::CppModelManager::instance()->workingCopy().elements();
|
||||||
for (auto it = elements.cbegin(), end = elements.cend(); it != end; ++it) {
|
for (auto it = elements.cbegin(), end = elements.cend(); it != end; ++it) {
|
||||||
const Utils::FilePath &fileName = it.key();
|
const Utils::FilePath &fileName = it.key();
|
||||||
|
|||||||
Reference in New Issue
Block a user