Commit 75abcda9 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Use sane Qt version on import

parent 9b551971
......@@ -125,6 +125,19 @@ bool Qt4BuildConfiguration::fromMap(const QVariantMap &map)
m_toolChainType = map.value(QLatin1String(TOOLCHAIN_KEY)).toInt();
m_qmakeBuildConfiguration = QtVersion::QmakeBuildConfigs(map.value(QLatin1String(BUILD_CONFIGURATION_KEY)).toInt());
// Pick a decent Qt version if the default version is used:
if (m_qtVersionId == 0) {
QList<QtVersion *> versions = QtVersionManager::instance()->versions();
foreach (QtVersion *v, versions) {
if (v->isValid())
m_qtVersionId = v->uniqueId();
if (v->supportsTargetId(QLatin1String(DESKTOP_TARGET_ID)))
if (m_qtVersionId == 0)
m_qtVersionId =>uniqueId();
if (!qtVersion()->supportedTargetIds().contains(target()->id()))
return false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment