forked from qt-creator/qt-creator
CppTools: Fix compile
Change-Id: I08ceaa94d9f18b671cee23f226dcdd7db1da0429 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -33,9 +33,11 @@
|
||||
#include "projectinfo.h"
|
||||
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <projectexplorer/buildsystem.h>
|
||||
#include <projectexplorer/project.h>
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
#include <projectexplorer/session.h>
|
||||
#include <projectexplorer/target.h>
|
||||
#include <texteditor/texteditor.h>
|
||||
#include <texteditor/codeassist/iassistproposal.h>
|
||||
#include <texteditor/codeassist/iassistproposalmodel.h>
|
||||
@@ -233,7 +235,7 @@ bool TestCase::waitUntilProjectIsFullyOpened(Project *project, int timeOutInMs)
|
||||
|
||||
return QTest::qWaitFor(
|
||||
[project]() {
|
||||
return !project->isParsing()
|
||||
return !project->activeTarget()->buildSystem()->isParsing()
|
||||
&& CppModelManager::instance()->projectInfo(project).isValid();
|
||||
},
|
||||
timeOutInMs);
|
||||
|
Reference in New Issue
Block a user