forked from qt-creator/qt-creator
QMake: Also check for QtChooser in DesktopQtVersion::fromMap
This is only done for DesktopQtVersions, as I believe that only those are affected by this. Fixes more issues described in Task-number: QTCREATORBUG-9841 Change-Id: Ifb7a797e71c812daef5bc5139bc339fb11423c15 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -388,6 +388,15 @@ void BaseQtVersion::fromMap(const QVariantMap &map)
|
||||
QString string = map.value(QLatin1String(QTVERSIONQMAKEPATH)).toString();
|
||||
if (string.startsWith(QLatin1Char('~')))
|
||||
string.remove(0, 1).prepend(QDir::homePath());
|
||||
|
||||
QFileInfo fi(string);
|
||||
if (BuildableHelperLibrary::isQtChooser(fi)) {
|
||||
// we don't want to treat qtchooser as a normal qmake
|
||||
// see e.g. QTCREATORBUG-9841, also this lead to users changing what
|
||||
// qtchooser forwards too behind our backs, which will inadvertly lead to bugs
|
||||
string = BuildableHelperLibrary::qtChooserToQmakePath(string);
|
||||
}
|
||||
|
||||
ctor(FileName::fromString(string));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user