Commit bb66e546 authored by Daniel Teske's avatar Daniel Teske

Creating profiles: Set toolchain before the mkspec

The mkspec setting function checks whether the value is the same as the
default, but the default depends on the toolchain.

Change-Id: I2ff55efbf365617b117301224e23d616dc7db25e
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent efe466d0
......@@ -203,8 +203,8 @@ ProjectExplorer::Profile *TargetSetupPage::createTemporaryProfile(QtSupport::Bas
ProjectExplorer::Profile *p = new ProjectExplorer::Profile;
p->setDisplayName(version->displayName());
QtSupport::QtProfileInformation::setQtVersion(p, version);
QmakeProfileInformation::setMkspec(p, parsedSpec);
ProjectExplorer::ToolChainProfileInformation::setToolChain(p, version->preferredToolChain(parsedSpec));
QmakeProfileInformation::setMkspec(p, parsedSpec);
p->setValue(PROFILE_IS_TEMPORARY, true);
p->setValue(TEMPORARY_OF_PROJECTS, QStringList() << m_proFilePath);
......
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