diff --git a/src/plugins/projectexplorer/targetselector.cpp b/src/plugins/projectexplorer/targetselector.cpp
index 72ee9ea5a42d130c4f640baf7c1028787c3730c7..d319be44013d1cb04cc9b2069c6906199a2f1334 100644
--- a/src/plugins/projectexplorer/targetselector.cpp
+++ b/src/plugins/projectexplorer/targetselector.cpp
@@ -236,7 +236,7 @@ void TargetSelector::paintEvent(QPaintEvent *event)
         else
             p.setPen(buildSelected ? Qt::black : Qt::white);
 
-        p.drawText(textRect, Qt::AlignHCenter, runString);
+        p.drawText(textRect, Qt::AlignHCenter, buildString);
 
         // Run
         textRect.moveLeft(x + targetWidth()/2 - 2 * margin);
@@ -244,7 +244,7 @@ void TargetSelector::paintEvent(QPaintEvent *event)
             p.setPen(QColor(0x555555));
         else
             p.setPen(buildSelected ? Qt::white: Qt::black);
-        p.drawText(textRect, Qt::AlignHCenter, buildString);
+        p.drawText(textRect, Qt::AlignHCenter, runString);
 
         x += targetWidth();