diff --git a/src/plugins/qt4projectmanager/qt-s60/s60devices.cpp b/src/plugins/qt4projectmanager/qt-s60/s60devices.cpp
index 3b4fe3da23b1fffdb6212a3f4068d547d71c3a50..087b62194663d00ac84910b31d4ac75c1274e0a7 100644
--- a/src/plugins/qt4projectmanager/qt-s60/s60devices.cpp
+++ b/src/plugins/qt4projectmanager/qt-s60/s60devices.cpp
@@ -403,7 +403,7 @@ static QString detect_SDK_installedQt(const QString &epocRoot)
     const QString coreLibDllFileName = epocRoot + QLatin1String("/epoc32/release/winscw/udeb/QtCore.dll");
     QFile coreLibDllFile(coreLibDllFileName);
     if (!coreLibDllFile.exists() || !coreLibDllFile.open(QIODevice::ReadOnly))
-        return false;
+        return QString();
 
     // Do not normalize these backslashes since they are in ARM binaries:
     const QByteArray indicator("\\src\\corelib\\kernel\\qobject.h");