diff --git a/src/plugins/qt4projectmanager/qtoptionspage.cpp b/src/plugins/qt4projectmanager/qtoptionspage.cpp
index 2367907cac7c34e9c45b47b95fe4ca9fda8d3ba4..113b5f7c1a33a10ac5d8bbc563d8a0ae5a7457ed 100644
--- a/src/plugins/qt4projectmanager/qtoptionspage.cpp
+++ b/src/plugins/qt4projectmanager/qtoptionspage.cpp
@@ -748,7 +748,12 @@ void QtOptionsPageWidget::updateCurrentGcceDirectory()
 
 QList<QSharedPointerQtVersion> QtOptionsPageWidget::versions() const
 {
-    return m_versions;
+    QList<QSharedPointerQtVersion> result;
+    for (int i = 0; i < m_versions.count(); ++i) {
+        if (m_versions.at(i)->qmakeCommand() != m_specifyPathString)
+            result.append(m_versions.at(i));
+    }
+    return result;
 }
 
 QString QtOptionsPageWidget::searchKeywords() const