diff --git a/src/plugins/qt4projectmanager/qt4projectconfigwidget.cpp b/src/plugins/qt4projectmanager/qt4projectconfigwidget.cpp index 4369a1b9e86504e6cf91c890dfb7fde02183c292..944cebc9956ee5a952022e4541b8233dc2c21e57 100644 --- a/src/plugins/qt4projectmanager/qt4projectconfigwidget.cpp +++ b/src/plugins/qt4projectmanager/qt4projectconfigwidget.cpp @@ -96,7 +96,7 @@ Qt4ProjectConfigWidget::Qt4ProjectConfigWidget(ProjectExplorer::Target *target) connect(m_ui->shadowBuildDirEdit, SIGNAL(changed(QString)), this, SLOT(shadowBuildEdited())); - Qt4Project *project = qobject_cast<Qt4Project *>(target->project()); + Project *project = target->project(); if (project) { connect(project, SIGNAL(environmentChanged()), this, SLOT(environmentChanged())); connect(project, SIGNAL(buildDirectoryInitialized()), this, SLOT(updateProblemLabel()));