Fix detection of Qt Versions added by installer.

Now that we check for the qmake.exe location rather than for
the path itself, we need to use QFile for the check.
This commit is contained in:
Daniel Molkentin
2009-10-22 14:23:30 +02:00
parent da89dbb410
commit 381a9480bf

View File

@@ -290,7 +290,7 @@ void QtVersionManager::addNewVersionsFromInstaller()
foreach (QString newVersion, newVersionsList) {
QStringList newVersionData = newVersion.split('=');
if (newVersionData.count()>=2) {
if (QDir(newVersionData[1]).exists()) {
if (QFile::exists(newVersionData[1])) {
QtVersion *version = new QtVersion(newVersionData[0], newVersionData[1], m_idcount++ );
if (newVersionData.count() >= 3)
version->setMingwDirectory(newVersionData[2]);