summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordt <qtc-committer@nokia.com>2009-10-05 17:43:50 +0200
committerdt <qtc-committer@nokia.com>2009-10-05 17:47:41 +0200
commit10f94d679f04c69069d6a86146139218360e7c0f (patch)
treeb66337ada7cd4ffda263ec436c55eba4031a2f0c /src
parentc9f13c0f5c85816b8ce24e06e30cf694ffe49cd3 (diff)
downloadqt-creator-10f94d679f04c69069d6a86146139218360e7c0f.tar.gz
Hitting build would still crash for a qml project
Diffstat (limited to 'src')
-rw-r--r--src/plugins/projectexplorer/projectexplorer.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp
index abe34747f4..034dd07469 100644
--- a/src/plugins/projectexplorer/projectexplorer.cpp
+++ b/src/plugins/projectexplorer/projectexplorer.cpp
@@ -1423,8 +1423,13 @@ void ProjectExplorerPlugin::buildProjectOnly()
static QStringList configurations(const QList<Project *> &projects)
{
QStringList result;
- foreach (const Project * pro, projects)
- result << pro->activeBuildConfiguration()->name();
+ foreach (const Project * pro, projects) {
+ if (BuildConfiguration *bc = pro->activeBuildConfiguration()) {
+ result << bc->name();
+ } else {
+ result << QString::null;
+ }
+ }
return result;
}