diff --git a/src/plugins/qt4projectmanager/qt4project.cpp b/src/plugins/qt4projectmanager/qt4project.cpp
index 4e3f28c3aa6e28bc2796b01ae61787425be2f1ed..bff11da668aa0c4c6d01b36f09c72936ff56f94c 100644
--- a/src/plugins/qt4projectmanager/qt4project.cpp
+++ b/src/plugins/qt4projectmanager/qt4project.cpp
@@ -407,7 +407,7 @@ QString Qt4Project::makeCommand(const QString &buildConfiguration) const
 QString Qt4Project::defaultMakeTarget(const QString &buildConfiguration) const
 {
     ToolChain *tc = toolChain(buildConfiguration);
-    return tc ? toolChain(buildConfiguration)->defaultMakeTarget() : "";
+    return tc ? tc->defaultMakeTarget() : "";
 }
 
 void Qt4Project::updateCodeModel()