summaryrefslogtreecommitdiff
path: root/src/plugins/qt4projectmanager/qmldumptool.cpp
diff options
context:
space:
mode:
authorLasse Holmstedt <lasse.holmstedt@nokia.com>2010-09-28 17:26:27 +0200
committerLasse Holmstedt <lasse.holmstedt@nokia.com>2010-09-29 09:39:42 +0200
commit89443cfb1fc2fb0ee48ea8884008a1240b5e13d8 (patch)
tree997c86cdcf9a43d3c3d4d02f6df15e1a37b47a5c /src/plugins/qt4projectmanager/qmldumptool.cpp
parent96d991bbdc34b00b4ba1c3b4f5690f04edfb4cf0 (diff)
downloadqt-creator-89443cfb1fc2fb0ee48ea8884008a1240b5e13d8.tar.gz
QML Observer: Complain about not having it if debugging .qmlprojects
Reviewed-by: hjk
Diffstat (limited to 'src/plugins/qt4projectmanager/qmldumptool.cpp')
-rw-r--r--src/plugins/qt4projectmanager/qmldumptool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qt4projectmanager/qmldumptool.cpp b/src/plugins/qt4projectmanager/qmldumptool.cpp
index cf60f055f0..6b6c52411f 100644
--- a/src/plugins/qt4projectmanager/qmldumptool.cpp
+++ b/src/plugins/qt4projectmanager/qmldumptool.cpp
@@ -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()) {