QML Observer: Complain about not having it if debugging .qmlprojects

Reviewed-by: hjk
This commit is contained in:
Lasse Holmstedt
2010-09-28 17:26:27 +02:00
parent 96d991bbdc
commit 89443cfb1f
11 changed files with 94 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ bool QmlDumpTool::canBuild(const QString &installHeadersDir)
QString QmlDumpTool::toolForProject(ProjectExplorer::Project *project)
{
if (project->id() == Qt4ProjectManager::Constants::QT4PROJECT_ID) {
if (project && project->id() == Qt4ProjectManager::Constants::QT4PROJECT_ID) {
Qt4Project *qt4Project = static_cast<Qt4Project*>(project);
if (qt4Project && qt4Project->activeTarget()
&& qt4Project->activeTarget()->activeBuildConfiguration()) {