diff --git a/src/plugins/qt4projectmanager/makestep.cpp b/src/plugins/qt4projectmanager/makestep.cpp
index 0079f4fcb7320fc63341fcb257f866459bfc6f3e..7c9026a6f112007060d94f7e3ec3b580e3928b15 100644
--- a/src/plugins/qt4projectmanager/makestep.cpp
+++ b/src/plugins/qt4projectmanager/makestep.cpp
@@ -214,7 +214,7 @@ MakeStepConfigWidget::MakeStepConfigWidget(MakeStep *makeStep)
 
     connect(makeStep, SIGNAL(changed()),
             this, SLOT(update()));
-    connect(makeStep->buildConfiguration()->project(), SIGNAL(buildDirectoryChanged()),
+    connect(makeStep->buildConfiguration(), SIGNAL(buildDirectoryChanged()),
             this, SLOT(updateDetails()));
 
     connect(ProjectExplorer::ProjectExplorerPlugin::instance(), SIGNAL(settingsChanged()),
diff --git a/src/plugins/qt4projectmanager/qmakestep.cpp b/src/plugins/qt4projectmanager/qmakestep.cpp
index 11672a43f9d092c7bcc75e11239b621d4b5fd845..7f03c24ab4ea134cf31275de4afc2565a96bae47 100644
--- a/src/plugins/qt4projectmanager/qmakestep.cpp
+++ b/src/plugins/qt4projectmanager/qmakestep.cpp
@@ -246,7 +246,7 @@ QMakeStepConfigWidget::QMakeStepConfigWidget(QMakeStep *step)
     connect(m_ui.buildConfigurationComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(buildConfigurationChanged()));
     connect(step, SIGNAL(changed()),
             this, SLOT(update()));
-    connect(step->buildConfiguration()->project(), SIGNAL(qtVersionChanged(ProjectExplorer::BuildConfiguration *)),
+    connect(step->buildConfiguration(), SIGNAL(qtVersionChanged(ProjectExplorer::BuildConfiguration *)),
             this, SLOT(qtVersionChanged(ProjectExplorer::BuildConfiguration *)));
 }
 
diff --git a/src/plugins/qt4projectmanager/qmakestep.h b/src/plugins/qt4projectmanager/qmakestep.h
index 867c938c0dc9b73e3c68b6103dde75fccdb03484..ef0176c47c54a2941d088530488218b3addab917 100644
--- a/src/plugins/qt4projectmanager/qmakestep.h
+++ b/src/plugins/qt4projectmanager/qmakestep.h
@@ -43,8 +43,8 @@ class Project;
 }
 
 namespace Qt4ProjectManager {
-
 namespace Internal {
+
 class QMakeStepFactory : public ProjectExplorer::IBuildStepFactory
 {
     Q_OBJECT