forked from qt-creator/qt-creator
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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user