forked from qt-creator/qt-creator
Utils: Do not assume qtchooser target as valid
Change-Id: Ia92286cf8dbc810139ab0cb1e7440aa62d290e21 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -66,7 +66,8 @@ static bool isQmake(const QString &path)
|
||||
QFileInfo fi(path);
|
||||
if (BuildableHelperLibrary::isQtChooser(fi))
|
||||
fi.setFile(BuildableHelperLibrary::qtChooserToQmakePath(fi.symLinkTarget()));
|
||||
|
||||
if (!fi.exists() || fi.isDir())
|
||||
return false;
|
||||
return !BuildableHelperLibrary::qtVersionForQMake(fi.absoluteFilePath()).isEmpty();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user