Commit b8734dd7 authored by Friedemann Kleint's avatar Friedemann Kleint

Fix another crash when BaseQtVersion == 0.

Change-Id: I635bbc5c0120f8bf15b918ef8205cf72298720f0
Reviewed-on: http://codereview.qt.nokia.com/98Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent 554b8e99
......@@ -388,16 +388,15 @@ void Qt4ProjectConfigWidget::updateImportLabel()
if (m_buildConfiguration->shadowBuild())
buildDirectory = m_buildConfiguration->buildDirectory();
QList<ProjectExplorer::Task> issues;
QtSupport::BaseQtVersion *version = m_buildConfiguration->qtVersion();
if (version)
if (QtSupport::BaseQtVersion *version = m_buildConfiguration->qtVersion()) {
issues = version->reportIssues(m_buildConfiguration->target()->project()->file()->fileName(),
buildDirectory);
buildDirectory);
foreach (Qt4BaseTargetFactory *factory,
Qt4BaseTargetFactory::qt4BaseTargetFactoriesForIds(version->supportedTargetIds().toList()))
issues.append(factory->reportIssues(m_buildConfiguration->target()->project()->file()->fileName()));
foreach (Qt4BaseTargetFactory *factory,
Qt4BaseTargetFactory::qt4BaseTargetFactoriesForIds(version->supportedTargetIds().toList()))
issues.append(factory->reportIssues(m_buildConfiguration->target()->project()->file()->fileName()));
qSort(issues);
qSort(issues);
}
if (incompatibleBuild) {
m_ui->problemLabel->setVisible(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment